mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +00:00
Update dependencies (#303)
* Migrate terser plugin * Update dependencies
This commit is contained in:
parent
de749bd83e
commit
39ae5dc40c
1617
package-lock.json
generated
1617
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
42
package.json
42
package.json
@ -12,29 +12,29 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||||
"@rollup/plugin-babel": "^5.3.1",
|
"@rollup/plugin-babel": "^6.0.3",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@rollup/plugin-typescript": "^8.2.1",
|
"@rollup/plugin-typescript": "^10.0.1",
|
||||||
"@types/w3c-web-serial": "^1.0.1",
|
"@rollup/plugin-terser": "^0.2.1",
|
||||||
"prettier": "^2.3.0",
|
"@types/w3c-web-serial": "^1.0.3",
|
||||||
"rollup": "^2.50.2",
|
"prettier": "^2.8.1",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup": "^3.9.1",
|
||||||
"serve": "^14.0.1",
|
"serve": "^14.1.2",
|
||||||
"typescript": "^4.3.2"
|
"typescript": "^4.9.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material/mwc-button": "^0.26.1",
|
"@material/mwc-button": "^0.27.0",
|
||||||
"@material/mwc-checkbox": "^0.26.1",
|
"@material/mwc-checkbox": "^0.27.0",
|
||||||
"@material/mwc-circular-progress": "^0.26.1",
|
"@material/mwc-circular-progress": "^0.27.0",
|
||||||
"@material/mwc-dialog": "^0.26.1",
|
"@material/mwc-dialog": "^0.27.0",
|
||||||
"@material/mwc-formfield": "^0.26.1",
|
"@material/mwc-formfield": "^0.27.0",
|
||||||
"@material/mwc-icon-button": "^0.26.1",
|
"@material/mwc-icon-button": "^0.27.0",
|
||||||
"@material/mwc-textfield": "^0.26.1",
|
"@material/mwc-textfield": "^0.27.0",
|
||||||
"esptool-js": "github:espressif/esptool-js#076af269f44daa5b7823031221f39bf22124c129",
|
"esptool-js": "github:espressif/esptool-js#076af269f44daa5b7823031221f39bf22124c129",
|
||||||
"improv-wifi-serial-sdk": "^2.2.2",
|
"improv-wifi-serial-sdk": "^2.3.0",
|
||||||
"lit": "^2.0.0",
|
"lit": "^2.5.0",
|
||||||
"pako": "^2.0.4",
|
"pako": "^2.1.0",
|
||||||
"tslib": "^2.3.1"
|
"tslib": "^2.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
import nodeResolve from "@rollup/plugin-node-resolve";
|
||||||
import json from "@rollup/plugin-json";
|
import json from "@rollup/plugin-json";
|
||||||
import { terser } from "rollup-plugin-terser";
|
import terser from "@rollup/plugin-terser";
|
||||||
import { babel } from "@rollup/plugin-babel";
|
import babel from "@rollup/plugin-babel";
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
input: "dist/install-button.js",
|
input: "dist/install-button.js",
|
||||||
@ -26,7 +26,7 @@ if (process.env.NODE_ENV === "production") {
|
|||||||
terser({
|
terser({
|
||||||
ecma: 2019,
|
ecma: 2019,
|
||||||
toplevel: true,
|
toplevel: true,
|
||||||
output: {
|
format: {
|
||||||
comments: false,
|
comments: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
@ -114,9 +114,7 @@ export class InstallButton extends HTMLElement {
|
|||||||
"replaceSync" in CSSStyleSheet.prototype
|
"replaceSync" in CSSStyleSheet.prototype
|
||||||
) {
|
) {
|
||||||
const sheet = new CSSStyleSheet();
|
const sheet = new CSSStyleSheet();
|
||||||
// @ts-expect-error
|
|
||||||
sheet.replaceSync(InstallButton.style);
|
sheet.replaceSync(InstallButton.style);
|
||||||
// @ts-expect-error
|
|
||||||
this.renderRoot.adoptedStyleSheets = [sheet];
|
this.renderRoot.adoptedStyleSheets = [sheet];
|
||||||
} else {
|
} else {
|
||||||
const styleSheet = document.createElement("style");
|
const styleSheet = document.createElement("style");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user