We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f23940 commit 0403f12Copy full SHA for 0403f12
2 files changed
babel.config.js
@@ -4,6 +4,7 @@ module.exports = {
4
'@babel/preset-env',
5
{
6
loose: true,
7
+ modules: process.env.BABEL_ENV === 'test' ? 'commonjs' : 'auto',
8
targets: {
9
node: 'current',
10
},
package.json
@@ -12,7 +12,7 @@
12
"prepare": "npm run -s build",
13
"prepare:babel": "babel src/*.js -d dist && npm t",
14
"lint": "eslint src",
15
- "test": "npm run -s lint && npm run -s build && jest",
+ "test": "npm run -s lint && npm run -s build && BABEL_ENV=test jest",
16
"release": "npm run -s prepare && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
17
18
"repository": "developit/microbundle",
0 commit comments