Some config changes before grunt migration
This commit is contained in:
parent
d40c64065c
commit
7a01efda75
5 changed files with 31 additions and 10 deletions
3
.babelrc
3
.babelrc
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"assumptions": {
|
"assumptions": {
|
||||||
"setPublicClassFields": true,
|
"setPublicClassFields": true
|
||||||
"privateFieldsAsProperties": true
|
|
||||||
},
|
},
|
||||||
"presets": [
|
"presets": [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -136,9 +136,9 @@
|
||||||
"booleans": true,
|
"booleans": true,
|
||||||
"if_return": true,
|
"if_return": true,
|
||||||
"sequences": true,
|
"sequences": true,
|
||||||
"unused": true,
|
"unused": false,
|
||||||
"conditionals": true,
|
"conditionals": true,
|
||||||
"dead_code": true,
|
"dead_code": false,
|
||||||
"evaluate": true
|
"evaluate": true
|
||||||
},
|
},
|
||||||
"mangle": {
|
"mangle": {
|
||||||
|
|
@ -179,9 +179,9 @@
|
||||||
"booleans": true,
|
"booleans": true,
|
||||||
"if_return": true,
|
"if_return": true,
|
||||||
"sequences": true,
|
"sequences": true,
|
||||||
"unused": true,
|
"unused": false,
|
||||||
"conditionals": true,
|
"conditionals": true,
|
||||||
"dead_code": true,
|
"dead_code": false,
|
||||||
"evaluate": true
|
"evaluate": true
|
||||||
},
|
},
|
||||||
"mangle": {
|
"mangle": {
|
||||||
|
|
|
||||||
20
package-lock.json
generated
20
package-lock.json
generated
|
|
@ -14,6 +14,8 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.0",
|
"@babel/core": "^7.24.0",
|
||||||
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||||
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
||||||
"@babel/plugin-transform-private-methods": "^7.24.0",
|
"@babel/plugin-transform-private-methods": "^7.24.0",
|
||||||
"@babel/plugin-transform-private-property-in-object": "^7.24.0",
|
"@babel/plugin-transform-private-property-in-object": "^7.24.0",
|
||||||
"@babel/preset-env": "^7.24.0",
|
"@babel/preset-env": "^7.24.0",
|
||||||
|
|
@ -502,6 +504,24 @@
|
||||||
"@babel/core": "^7.0.0"
|
"@babel/core": "^7.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@babel/plugin-proposal-class-properties": {
|
||||||
|
"version": "7.18.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",
|
||||||
|
"integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==",
|
||||||
|
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/helper-create-class-features-plugin": "^7.18.6",
|
||||||
|
"@babel/helper-plugin-utils": "^7.18.6"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.9.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@babel/core": "^7.0.0-0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@babel/plugin-proposal-private-property-in-object": {
|
"node_modules/@babel/plugin-proposal-private-property-in-object": {
|
||||||
"version": "7.21.0-placeholder-for-preset-env.2",
|
"version": "7.21.0-placeholder-for-preset-env.2",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,16 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.0",
|
"@babel/core": "^7.24.0",
|
||||||
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||||
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
||||||
"@babel/plugin-transform-private-methods": "^7.24.0",
|
"@babel/plugin-transform-private-methods": "^7.24.0",
|
||||||
"@babel/plugin-transform-private-property-in-object": "^7.24.0",
|
"@babel/plugin-transform-private-property-in-object": "^7.24.0",
|
||||||
"@babel/preset-env": "^7.24.0",
|
"@babel/preset-env": "^7.24.0",
|
||||||
"@webcomponents/webcomponentsjs": "^2.8.0",
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
||||||
"babel-loader": "^9.1.3",
|
"babel-loader": "^9.1.3",
|
||||||
"core-js": "^3.36.0",
|
|
||||||
"clipboard": "^2.0.1",
|
"clipboard": "^2.0.1",
|
||||||
"copy-webpack-plugin": "^12.0.2",
|
"copy-webpack-plugin": "^12.0.2",
|
||||||
|
"core-js": "^3.36.0",
|
||||||
"css-loader": "^7.1.2",
|
"css-loader": "^7.1.2",
|
||||||
"exports-loader": "^5.0.0",
|
"exports-loader": "^5.0.0",
|
||||||
"favico.js": "^0.3.10",
|
"favico.js": "^0.3.10",
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,7 @@ if (process.env.RC_STATIC_DIR) {
|
||||||
// doing it this way because it seems that plugin via grunt does not pick up .babelrc
|
// doing it this way because it seems that plugin via grunt does not pick up .babelrc
|
||||||
let babelRCOptions = {
|
let babelRCOptions = {
|
||||||
"assumptions": {
|
"assumptions": {
|
||||||
"setPublicClassFields": true,
|
"setPublicClassFields": true
|
||||||
"privateFieldsAsProperties": true
|
|
||||||
},
|
},
|
||||||
"presets": [
|
"presets": [
|
||||||
["@babel/preset-env", {
|
["@babel/preset-env", {
|
||||||
|
|
@ -33,7 +32,8 @@ let babelRCOptions = {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: false // Let grunt-terser handle minification to avoid double-minification
|
minimize: false, // Disable webpack minification - grunt-terser handles final minification
|
||||||
|
usedExports: false, // Disable tree-shaking - it breaks Lit's re-exports
|
||||||
},
|
},
|
||||||
// Tell Webpack which file kicks off our app.
|
// Tell Webpack which file kicks off our app.
|
||||||
entry: {
|
entry: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue