Skip to content

Commit 296026b

Browse files
authored
Merge branch 'master' into remove_import_pruning
2 parents 3176b69 + 210bb00 commit 296026b

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
'@babel/preset-env',
55
{
66
loose: true,
7+
modules: process.env.BABEL_ENV === 'test' ? 'commonjs' : 'auto',
78
targets: {
89
node: 'current',
910
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"prepare": "npm run -s build",
1313
"prepare:babel": "babel src/*.js -d dist && npm t",
1414
"lint": "eslint src",
15-
"test": "npm run -s lint && npm run -s build && jest",
15+
"test": "npm run -s lint && npm run -s build && BABEL_ENV=test jest",
1616
"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"
1717
},
1818
"repository": "developit/microbundle",

test/__snapshots__/index.test.js.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ basic-json
7777
7878
7979
Build \\"basicJson\\" to dist:
80-
146 B: basic-json.js.gz
81-
97 B: basic-json.js.br
82-
145 B: basic-json.mjs.gz
83-
98 B: basic-json.mjs.br
84-
225 B: basic-json.umd.js.gz
85-
161 B: basic-json.umd.js.br"
80+
130 B: basic-json.js.gz
81+
81 B: basic-json.js.br
82+
129 B: basic-json.mjs.gz
83+
81 B: basic-json.mjs.br
84+
209 B: basic-json.umd.js.gz
85+
149 B: basic-json.umd.js.br"
8686
`;
8787

8888
exports[`fixtures basic-ts 1`] = `

0 commit comments

Comments
 (0)