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

Problem with webpack react class attr #25

Open
rodriguez-facundo opened this issue Sep 4, 2019 · 0 comments
Open

Problem with webpack react class attr #25

rodriguez-facundo opened this issue Sep 4, 2019 · 0 comments
Labels
🐛 Bug Something isn't working

Comments

@rodriguez-facundo
Copy link
Member

rodriguez-facundo commented Sep 4, 2019

Requires testing on other projects, but I had to refactor React rule like this:

// webpack.config.js
{
          test: /\.(js|jsx)$/,
          exclude: [/ami.min.js/, /node_modules\/(?!(@geppettoengine\/geppetto-client)\/).*/], 
          use: {
            loader: "babel-loader",
            options: { 
              presets: [
                '@babel/preset-env',
                '@babel/preset-react'
              ],
              plugins: [
                "@babel/plugin-syntax-dynamic-import",
                "@babel/plugin-proposal-class-properties"
              ]
            }
          }
        },
@rodriguez-facundo rodriguez-facundo added the 🐛 Bug Something isn't working label Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant