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

Commit 511355b

Browse files
committed
chore: upgrade base deps
1 parent 989eff9 commit 511355b

File tree

49 files changed

+2714
-516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2714
-516
lines changed

babel.config.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
const BABEL_ENV = process.env.BABEL_ENV
2-
const isCommonJS = BABEL_ENV !== undefined && BABEL_ENV === 'cjs'
3-
const isESM = BABEL_ENV !== undefined && BABEL_ENV === 'esm'
2+
const isCommonJS = BABEL_ENV !== undefined && BABEL_ENV === "cjs"
3+
const isESM = BABEL_ENV !== undefined && BABEL_ENV === "esm"
44

5-
const __TEST__ = process.env.NODE_ENV === 'test'
5+
const __TEST__ = process.env.NODE_ENV === "test"
66

77
const baseConfig = function (api) {
88
api.cache(true)
99

1010
const presets = [
1111
[
12-
'@babel/env',
12+
"@babel/env",
1313
{
1414
loose: true,
15-
modules: isCommonJS ? 'commonjs' : false,
15+
modules: isCommonJS ? "commonjs" : false,
1616
targets: {
1717
esmodules: isESM ? true : undefined,
1818
},
1919
},
2020
],
21-
'@babel/preset-typescript',
21+
"@babel/preset-typescript",
2222
]
23-
const plugins = ['@vue/babel-plugin-jsx']
23+
const plugins = ["@vue/babel-plugin-jsx"]
2424

2525
return {
2626
presets,
@@ -33,13 +33,13 @@ const testConfig = {
3333
test: {
3434
presets: [
3535
[
36-
'@babel/preset-env',
36+
"@babel/preset-env",
3737
{
38-
targets: { node: 'current' },
38+
targets: { node: "current" },
3939
},
4040
],
4141
],
42-
plugins: ['@vue/babel-plugin-jsx'],
42+
plugins: ["@vue/babel-plugin-jsx"],
4343
},
4444
},
4545
}

0 commit comments

Comments
 (0)