Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use with webpack #22

Closed
stukennedy opened this issue Feb 23, 2016 · 1 comment
Closed

how to use with webpack #22

stukennedy opened this issue Feb 23, 2016 · 1 comment

Comments

@stukennedy
Copy link

Apologies ... but I can't figure out how I should enable this plugin in Webpack.
I tried adding it like this

{
    test: /\.jsx?$/,
    exclude: /node_modules/,
    loader: 'babel',
    query: {
      presets: [
        'es2015',
        'react',
        'stage-0'
      ]
    },
    plugins: ['transform-decorators-legacy']
  }

but I still get the error Decorators are not supported yet in 6.x pending proposal update.

@loganfsmyth
Copy link
Owner

plugins is a sibling of presets, it should go inside the query block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants