babel.config.js 443 B

123456789101112
  1. module.exports = {
  2. assumptions: { setPublicClassFields: true, privateFieldsAsProperties: true },
  3. presets: [["@babel/preset-env", { modules: false, useBuiltIns: "usage", corejs: "3.6.4" }], "@babel/preset-typescript"],
  4. plugins: [
  5. "@babel/plugin-proposal-private-methods",
  6. "@babel/plugin-proposal-class-properties",
  7. "@babel/plugin-transform-classes",
  8. "@babel/plugin-transform-runtime",
  9. ],
  10. sourceType: "unambiguous",
  11. };