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

babel preset env issue #412

Closed
YouthBaby opened this issue Sep 28, 2017 · 2 comments
Closed

babel preset env issue #412

YouthBaby opened this issue Sep 28, 2017 · 2 comments

Comments

@YouthBaby
Copy link

最近babel 推荐 用 env 取代 es2015 以及之后的版本 ,在wepy.config.js 中修改后会报错 util is not defined !

@Gcaufy
Copy link
Collaborator

Gcaufy commented Sep 29, 2017

试试

npm install wepy-cli@1.5.9-2

或者:

    babel: {
      'sourceMap': true,
      'presets': [
        'env'
      ],
      'plugins': [
        'babel-plugin-transform-class-properties',
        'transform-export-extensions',
        'syntax-export-extensions'
      ]
    }

@YouthBaby
Copy link
Author

OK

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

2 participants