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

using zuul-builder-webpack with ES6 style webpack.config.js files #8

Open
daveashworth opened this issue Jul 7, 2016 · 0 comments
Open

Comments

@daveashworth
Copy link

daveashworth commented Jul 7, 2016

My webpack.config.js file is written with ES6 conventions, and in the zuul.config.js file I just require my webpack config, but zuul gives the following error:

(function (exports, require, module, __filename, __dirname) { import universal from "./lib/universal-webpack";
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/data/projects/platform/zuul.config.js:4:12)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

Is there a way around this?

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

No branches or pull requests

1 participant