Skip to content

Commit f01d519

Browse files
committed
make the built output compatible with older browsers (see #446)
1 parent e633104 commit f01d519

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IE 10

package-lock.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,19 @@
3838
"prepublishOnly": "npm run test"
3939
},
4040
"devDependencies": {
41-
"@types/node": "20.12.5",
4241
"@babel/core": "7.24.4",
4342
"@babel/preset-env": "7.24.4",
4443
"@rollup/plugin-babel": "6.0.4",
4544
"@rollup/plugin-commonjs": "25.0.7",
4645
"@rollup/plugin-json": "6.1.0",
4746
"@rollup/plugin-node-resolve": "15.2.3",
4847
"@rollup/plugin-terser": "0.4.4",
48+
"@types/node": "20.12.5",
4949
"c8": "9.1.0",
50+
"core-js": "3.37.1",
5051
"date-format": "4.0.14",
51-
"fs-extra": "11.2.0",
5252
"find-process": "1.4.7",
53+
"fs-extra": "11.2.0",
5354
"mocha": "10.4.0",
5455
"rollup": "4.14.0",
5556
"typescript": "5.4.4"

rollup.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const commonPlugin = [
2929
babel({
3030
extensions: [".js", ".ts"],
3131
babelHelpers: "bundled",
32+
presets: ['@babel/env']
3233
}),
3334
];
3435
const commonOutput = {

0 commit comments

Comments
 (0)