Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit db9e254

Browse files
committed
fix(fusuma): change target browser versions
1 parent 37d7306 commit db9e254

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/fusuma/src/configs/babelrc.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ function babelrc() {
66
[
77
'@babel/preset-env',
88
{
9-
// useBuiltIns: 'usage',
10-
// corejs: 3,
119
targets: {
12-
browsers: 'last 1 version',
10+
browsers: ['> 2%'],
1311
},
1412
modules: false,
1513
// we cannot use useBuiltIns option

packages/fusuma/src/webpack/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = (
8484
{
8585
loader: 'babel-loader',
8686
options: {
87-
...babelrc(code),
87+
...babelrc(),
8888
cwd: configsBasePath,
8989
},
9090
},

0 commit comments

Comments
 (0)