mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
ac7c226196
* chore(project): bump @babel/cli from 7.12.1 to 7.15.4 * chore(project): bump @babel/core from 7.11.6 to 7.15.5 * chore(project): bump @babel/plugin-proposal-class-properties to 7.14.5 * chore(project): bump @babel/plugin-transform-runtime to 7.15.0 * chore(project): bump @babel/preset-env from 7.11.5 to 7.15.4 * chore(project): bump @babel/preset-typescript from 7.10.4 to 7.15.0 * chore(project): bump babel-loader from 8.1.0 to 8.2.2 * chore(project): bump babel-plugin-module-resolver from 4.0.0 to 4.1.0 * chore(project): bump @popperjs/core from 2.4.4 to 2.10.1 * chore(project): update babel.config.js * chore(project): update jest.config.js * chore(project): bump @typescript-eslint/eslint-plugin to 4.30.0 * chore(project): bump @typescript-eslint/parser from 4.29.3 to 4.30.0 * chore(project): bump algoliasearch from 4.4.0 to 4.10.5 * chore(project): bump transliteration from 2.1.11 to 2.2.0 * chore(project): bump typescript from 4.3.5 to 4.4.2 * chore(project): bump esbuild from 0.12.5 to 0.12.25 * chore(project): bump file-loader from 6.1.0 to 6.2.0 * chore(project): bump rollup from 2.28.2 to 2.56.3 * chore(project): bump rollup-plugin-esbuild from 4.2.3 to 4.5.0 * chore(project): bump sass from 1.37.0 to 1.39.0 * chore(project): move sass & typescript to devDependencies
55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
module.exports = {
|
|
// ATTENTION!!
|
|
// Preset ordering is reversed, so `@babel/typescript` will called first
|
|
// Do not put `@babel/typescript` before `@babel/env`, otherwise will cause a compile error
|
|
// See https://github.com/babel/babel/issues/12066
|
|
presets: [
|
|
[
|
|
'@babel/env',
|
|
{
|
|
loose: true,
|
|
modules: false,
|
|
},
|
|
],
|
|
'@babel/typescript',
|
|
],
|
|
plugins: [
|
|
'@vue/babel-plugin-jsx',
|
|
'@babel/plugin-proposal-nullish-coalescing-operator',
|
|
['@babel/plugin-proposal-private-methods', { loose: true }],
|
|
'@babel/transform-runtime',
|
|
'lodash',
|
|
],
|
|
overrides: [
|
|
{
|
|
test: /\.vue$/,
|
|
plugins: ['@babel/transform-typescript'],
|
|
},
|
|
],
|
|
env: {
|
|
utils: {
|
|
ignore: ['**/*.test.ts', '**/*.spec.ts'],
|
|
presets: [
|
|
[
|
|
'@babel/env',
|
|
{
|
|
loose: true,
|
|
modules: false,
|
|
},
|
|
],
|
|
],
|
|
plugins: [
|
|
[
|
|
'babel-plugin-module-resolver',
|
|
{
|
|
root: ['element-plus'],
|
|
alias: {
|
|
'@element-plus': 'element-plus/lib',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
}
|