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

feat: use COVERAGE env variable to control babel plugin babel-plugin-istanbul #76

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

ikobe-zz
Copy link

@ikobe-zz ikobe-zz commented Jul 23, 2019

通过环境变量 COVERAGE 控制是否加入 babel-plugin-istanbul 插件

@ikobe-zz ikobe-zz force-pushed the testCoverage branch 2 times, most recently from 83c3a24 to ff0ec34 Compare July 24, 2019 15:48
@ikobe-zz ikobe-zz changed the title [WIP] feat: use babel-plugin-istanbul in test env by default feat: use babel-plugin-istanbul in test env by default Jul 24, 2019
@ikobe-zz ikobe-zz changed the title feat: use babel-plugin-istanbul in test env by default feat: use COVERAGE env variable to control babel plugin babel-plugin-istanbul Jul 24, 2019
@@ -43,6 +43,10 @@ export default function(opts: IGetBabelConfigOpts) {
...(runtimeHelpers
? [[require.resolve('@babel/plugin-transform-runtime'), { useESModules: isBrowser }]]
: []),
...(process.env.COVERAGE === 'true'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • process.env.COVERAGE === 'true'
  • process.env.COVERAGE

@ikobe-zz ikobe-zz force-pushed the testCoverage branch 4 times, most recently from 8931958 to a905440 Compare July 25, 2019 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants