Skip to content

Commit 78ffe92

Browse files
committed
^
1 parent 9918f5f commit 78ffe92

6 files changed

Lines changed: 36 additions & 362 deletions

File tree

etc/wp/webpack.config.api.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,14 @@ module.exports = [
8484
['@babel/preset-env',
8585
{
8686
...(lpackCfg.vars.babelPreset || {})
87-
}],
88-
'@babel/preset-react',
89-
],
87+
}], "@babel/react"],
9088
plugins : [
9189
["@babel/plugin-proposal-decorators", { "legacy": true }],
92-
['@babel/plugin-proposal-class-properties', {
93-
"loose": true
94-
}],
9590
["@babel/plugin-transform-runtime", {}],
91+
["@babel/plugin-proposal-optional-chaining", {}],
92+
["@babel/proposal-class-properties", { loose: true }],
93+
"@babel/proposal-object-rest-spread",
94+
"@babel/plugin-syntax-dynamic-import"
9695

9796
]
9897
}

etc/wp/webpack.config.comp.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,15 @@ module.exports = [
145145
['@babel/preset-env',
146146
{
147147
...(lpackCfg.vars.babelPreset || {})
148-
}],
149-
'@babel/preset-react'
150-
],
148+
}], "@babel/react"],
151149
plugins : [
152150
["@babel/plugin-proposal-decorators", { "legacy": true }],
153-
['@babel/plugin-proposal-class-properties', {
154-
"loose": true
155-
}],
156151
["@babel/plugin-transform-runtime", {}],
157-
...(lpackCfg.vars.devServer && [[require.resolve("react-hot-loader/babel"), {}]] || []),
152+
["@babel/plugin-proposal-optional-chaining", {}],
153+
["@babel/proposal-class-properties", { loose: true }],
154+
"@babel/proposal-object-rest-spread",
155+
"@babel/plugin-syntax-dynamic-import",
156+
...(lpackCfg.vars.devServer && [["react-hot-loader/babel", {}]] || []),
158157
]
159158
}
160159
},

etc/wp/webpack.config.electron.js

Lines changed: 0 additions & 325 deletions
This file was deleted.

etc/wp/webpack.config.static.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,15 @@ module.exports = [
163163
['@babel/preset-env',
164164
{
165165
...(lpackCfg.vars.babelPreset || {})
166-
}],
167-
'@babel/preset-react'
168-
],
166+
}], "@babel/react"],
169167
plugins : [
170168
["@babel/plugin-proposal-decorators", { "legacy": true }],
171-
['@babel/plugin-proposal-class-properties', {
172-
"loose": true
173-
}],
174169
["@babel/plugin-transform-runtime", {}],
175-
...(lpackCfg.vars.devServer && [[require.resolve("react-hot-loader/babel"), {}]] || []),
170+
["@babel/plugin-proposal-optional-chaining", {}],
171+
["@babel/proposal-class-properties", { loose: true }],
172+
"@babel/proposal-object-rest-spread",
173+
"@babel/plugin-syntax-dynamic-import",
174+
...(lpackCfg.vars.devServer && [["react-hot-loader/babel", {}]] || []),
176175
]
177176
}
178177
},

0 commit comments

Comments
 (0)