WhitestormJS / whitestorm-app-boilerplate

[WIP] WhitestormJS 2 App boilerplate
http://whs-boilerplate-app.surge.sh/
MIT License
45 stars 17 forks source link

Uncaught TypeError: $export is not a function on Chrome 56 #6

Open alkavan opened 7 years ago

alkavan commented 7 years ago

Hey, I had an issue on Chrome 56.x when I got: Uncaught TypeError: $export is not a function console message on upon running the server first time.

My issue seems to be solved by finding this post on stack. And changing transform-runtime to following:

plugins: [
  'add-module-exports',
  'transform-decorators-legacy',
  'transform-class-properties',
  'transform-object-rest-spread',
  ['transform-runtime', {helpers: false, polyfill: false, regenerator: true}]
]
sasha240100 commented 7 years ago

@alkavan seems like duplication of #5. Will try to fix it tomorrow. You may make a PR to make it faster

hirako2000 commented 7 years ago

fixed, we can close?

saltcod commented 6 years ago

exclude: /(node_modules|bower_components)/,

fixed for me. Entire thing:

module: {
        rules: [
            {
                test: /\.js$/,
                enforce: 'pre',
                loader: 'eslint-loader',
                query: {
                    configFile: './.eslintrc'
                }
            },
            {
                test: /\.js$/,
                exclude: /(node_modules|bower_components)/,
                use: [
                    {
                        loader: 'babel-loader',
                        options: {
                            babelrc: true
                        }
                    }
                ]
            }
        ]
    },