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

Error with buble #30

Closed
francoisromain opened this issue Nov 28, 2017 · 1 comment
Closed

Error with buble #30

francoisromain opened this issue Nov 28, 2017 · 1 comment

Comments

@francoisromain
Copy link

Hello,
I try to setup tests with vue-jest. And there is the following error:

Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.
at Node.transpile (node_modules/vue-template-es2015-compiler/buble.js:12676:11)

In the webpack config there is a buble property (as explained here: https://github.com/vuejs/vue-loader/blob/master/docs/en/options.md#buble):

      test: /\.vue$/,
        loader: 'vue-loader',
        options: {
          buble: {
            objectAssign: 'Object.assign',
            transforms: {
              stripWith: true
            }
          }
        }

Is there a way to pass the same option to Jest?
Thank you

@francoisromain
Copy link
Author

I forgot to add "@babel/preset-stage-2" in babelrc. Sorry : )

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

1 participant