Skip to content

Commit 13526d6

Browse files
committed
chore(babel): update dependencies
1 parent adb97d0 commit 13526d6

File tree

4 files changed

+26
-20
lines changed

4 files changed

+26
-20
lines changed

packages/babel/package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"homepage": "https://github.com/rollup/plugins/tree/master/packages/babel#readme",
1212
"bugs": "https://github.com/rollup/plugins/issues",
1313
"main": "dist/index.js",
14+
"module": "dist/index.es.js",
1415
"engines": {
1516
"node": ">= 10.0.0"
1617
},
@@ -21,7 +22,7 @@
2122
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2223
"ci:test": "pnpm run test -- --verbose",
2324
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
24-
"lint:docs": "prettier --single-quote --write README.md",
25+
"lint:docs": "prettier --single-quote --arrow-parens avoid --write README.md",
2526
"lint:js": "eslint --fix --cache src test",
2627
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
2728
"prebuild": "del-cli dist",
@@ -50,22 +51,26 @@
5051
"rollup": "^1.20.0||^2.0.0"
5152
},
5253
"dependencies": {
53-
"@babel/helper-module-imports": "^7.7.4",
54-
"@rollup/pluginutils": "^3.0.8"
54+
"@babel/helper-module-imports": "^7.10.4",
55+
"@rollup/pluginutils": "^3.1.0"
5556
},
5657
"devDependencies": {
57-
"@babel/core": "^7.7.4",
58-
"@babel/plugin-external-helpers": "^7.7.4",
59-
"@babel/plugin-proposal-decorators": "^7.7.4",
60-
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
61-
"@babel/plugin-transform-runtime": "^7.7.4",
62-
"@babel/preset-env": "^7.9.0",
63-
"@rollup/plugin-json": "^4.0.0",
58+
"@babel/core": "^7.10.5",
59+
"@babel/plugin-external-helpers": "^7.10.4",
60+
"@babel/plugin-proposal-decorators": "^7.10.5",
61+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
62+
"@babel/plugin-transform-runtime": "^7.10.5",
63+
"@babel/preset-env": "^7.10.4",
64+
"@rollup/plugin-json": "^4.1.0",
6465
"@types/babel__core": "^7.1.9",
65-
"rollup": "^2.0.0",
66-
"source-map": "^0.6.1"
66+
"rollup": "^2.23.0",
67+
"source-map": "^0.7.3"
6768
},
69+
"types": "types/index.d.ts",
6870
"ava": {
71+
"babel": {
72+
"compileEnhancements": false
73+
},
6974
"files": [
7075
"!**/fixtures/**",
7176
"!**/helpers/**",
@@ -77,11 +82,9 @@
7782
"Bogdan Chadkin <[email protected]>",
7883
"Mateusz Burzyński <[email protected]> (https://github.com/Andarist)"
7984
],
80-
"module": "dist/index.es.js",
8185
"peerDependenciesMeta": {
8286
"@types/babel__core": {
8387
"optional": true
8488
}
85-
},
86-
"types": "types/index.d.ts"
89+
}
8790
}

packages/babel/test/as-input-plugin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ async function generate(input, babelOptions = {}, generateOptions = {}, rollupOp
5555

5656
return getCode(bundle, {
5757
format: 'cjs',
58+
exports: 'auto',
5859
...generateOptions
5960
});
6061
}
@@ -106,10 +107,10 @@ test('generates sourcemap by default', async (t) => {
106107

107108
const {
108109
output: [{ code, map }]
109-
} = await bundle.generate({ format: 'cjs', sourcemap: true });
110+
} = await bundle.generate({ format: 'cjs', exports: 'auto', sourcemap: true });
110111

111112
const target = 'log';
112-
const smc = new SourceMapConsumer(map);
113+
const smc = await new SourceMapConsumer(map);
113114
const loc = getLocation(code, code.indexOf(target));
114115
const original = smc.originalPositionFor(loc);
115116

packages/babel/test/as-output-plugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ async function generate(input, babelOptions = {}, generateOptions = {}, rollupOp
5353

5454
return getCode(bundle, {
5555
format: 'cjs',
56+
exports: 'auto',
5657
plugins: [getBabelOutputPlugin(babelOptions)],
5758
...generateOptions
5859
});
@@ -123,12 +124,13 @@ test('generates sourcemap by default', async (t) => {
123124
output: [{ code, map }]
124125
} = await bundle.generate({
125126
format: 'cjs',
127+
exports: 'auto',
126128
plugins: [getBabelOutputPlugin()],
127129
sourcemap: true
128130
});
129131

130132
const target = 'log';
131-
const smc = new SourceMapConsumer(map);
133+
const smc = await new SourceMapConsumer(map);
132134
const loc = getLocation(code, code.indexOf(target));
133135
const original = smc.originalPositionFor(loc);
134136

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)