mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-23 03:36:36 +00:00
Switch to preset-env for babel (#476)
This commit is contained in:
parent
a69aa84df6
commit
df7b4c69e0
3314
package-lock.json
generated
3314
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,8 +10,7 @@
|
|||||||
"prepublishOnly": "script/build"
|
"prepublishOnly": "script/build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
"@babel/preset-env": "^7.23.9",
|
||||||
"@babel/plugin-transform-logical-assignment-operators": "^7.23.4",
|
|
||||||
"@rollup/plugin-babel": "^6.0.4",
|
"@rollup/plugin-babel": "^6.0.4",
|
||||||
"@rollup/plugin-commonjs": "^25.0.7",
|
"@rollup/plugin-commonjs": "^25.0.7",
|
||||||
"@rollup/plugin-json": "^6.1.0",
|
"@rollup/plugin-json": "^6.1.0",
|
||||||
|
@ -20,9 +20,16 @@ const config = {
|
|||||||
}),
|
}),
|
||||||
babel({
|
babel({
|
||||||
babelHelpers: "bundled",
|
babelHelpers: "bundled",
|
||||||
plugins: [
|
presets: [
|
||||||
"@babel/plugin-proposal-class-properties",
|
[
|
||||||
"@babel/plugin-transform-logical-assignment-operators",
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
targets: {
|
||||||
|
// We use unpkg as CDN and it doesn't bundle modern syntax
|
||||||
|
chrome: "84",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
json(),
|
json(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user