babel-example icon indicating copy to clipboard operation
babel-example copied to clipboard

babel v7

Open Jbarget opened this issue 5 years ago • 0 comments

Hiya, Im trying to integrate typeorm into our Node server, written in plain JS at the moment but soon to move over to typescript.

Having trouble with the babel set up since we're on babel v7.8.3, any chance you could update this example to reflect version 7?

image

In babel.config.js

module.exports = {
  presets: [
    [
      "@babel/preset-env",
      {
        targets: {
          node: "10"
        }
      }
    ]
  ],
  plugins: [
    "@babel/plugin-proposal-class-properties",
    ["@babel/plugin-proposal-decorators", { decoratorsBeforeExport: true }]
  ]
};

Jbarget avatar Feb 20 '20 16:02 Jbarget