mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
move required ling-ui babel's part to webpack from common .babelrc
This commit is contained in:
parent
1169b862b3
commit
eca33fcc37
12
.babelrc
12
.babelrc
@ -1,20 +1,12 @@
|
||||
{
|
||||
"presets": [
|
||||
["@babel/preset-env", {
|
||||
"modules": "commonjs"
|
||||
}],
|
||||
"@babel/preset-env",
|
||||
"@babel/preset-react",
|
||||
"@lingui/babel-preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
"macros",
|
||||
"@babel/plugin-syntax-dynamic-import",
|
||||
[
|
||||
"@babel/plugin-transform-runtime",
|
||||
{
|
||||
"regenerator": true,
|
||||
"useESModules": true
|
||||
}
|
||||
]
|
||||
"@babel/plugin-transform-runtime"
|
||||
]
|
||||
}
|
||||
|
||||
@ -57,7 +57,16 @@ export function webpackConfigReact(): webpack.Configuration {
|
||||
test: /\.tsx?$/,
|
||||
exclude: /node_modules/,
|
||||
use: [
|
||||
"babel-loader",
|
||||
{
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
presets: [
|
||||
["@babel/preset-env", {
|
||||
modules: "commonjs" // ling-ui
|
||||
}],
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: "ts-loader",
|
||||
options: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user