Skip to content

Commit f07834a

Browse files
committed
up configs
1 parent 259cbd3 commit f07834a

File tree

3 files changed

+13
-27
lines changed

3 files changed

+13
-27
lines changed

babel.config.js

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
module.exports = function (api) {
22
api.cache(true);
33

4-
const presetOptions = {
5-
useBuiltIns: false,
6-
loose: true,
7-
};
8-
const plugins = [
9-
"@babel/transform-runtime",
10-
["polyfill-corejs3", {
11-
"method": "usage-pure"
12-
}]
13-
];
14-
15-
if (process.env.NODE_ENV === 'test') {
16-
presetOptions.targets = { node: 'current' };
17-
plugins.push(['istanbul', { exclude: ['test'], include: ['src'] }]);
18-
}
19-
204
return {
21-
targets: '> 0.25%, not dead',
5+
targets: '> 0.25%, not dead, not android < 100',
226
presets: [
23-
[ '@babel/env', presetOptions ],
24-
[ '@babel/typescript', { allowDeclareFields: true } ]
7+
[ '@babel/env', {
8+
useBuiltIns: false,
9+
loose: true,
10+
} ],
11+
[ '@babel/typescript', { allowDeclareFields: true } ],
12+
],
13+
plugins: [
14+
"@babel/transform-runtime",
15+
["polyfill-corejs3", {
16+
"method": "usage-pure",
17+
}],
2518
],
26-
plugins,
2719
exclude: ['**/node_modules/**'],
2820
};
2921
};

packages/imask/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"import": "./esm/index.js",
2121
"default": "./dist/imask.js"
2222
},
23+
"./esm": "./esm/index.js",
2324
"./*": "./*"
2425
},
2526
"scripts": {

packages/imask/tsconfig.json

-7
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,5 @@
77
"rootDir": "src",
88
"declarationMap": true,
99
"declarationDir": "esm"
10-
},
11-
12-
"ts-node": {
13-
"compilerOptions": {
14-
"module": "commonjs",
15-
"noEmit": true
16-
}
1710
}
1811
}

0 commit comments

Comments
 (0)