dabanlee/blurify

Failed to execute the webpack script

BkSouX opened this issue · 1 comments

Hi,

I have an issue when running the webpack script.

webpack.config.babel.js:1
(function (exports, require, module, __filename, __dirname) { export default {
                                                              ^^^^^^
SyntaxError: Unexpected token export
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)

I cloned the project, did a npm install and npm run prod:webpack.
Do you know why ?

You may update the .babelrc file like this:

{
    "presets": ["es2015"],
    "plugins": [
        "transform-object-rest-spread"
    ]
}