weboptimizer 2.0.1567 → 2.0.1569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1567",
3
+ "version": "2.0.1569",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -120,19 +120,19 @@
120
120
  "devDependencies": {
121
121
  "@babel/cli": "^7.26.4",
122
122
  "@babel/eslint-parser": "^7.26.8",
123
- "@stylistic/eslint-plugin": "^4.1.0",
124
- "@stylistic/eslint-plugin-ts": "^4.1.0",
123
+ "@stylistic/eslint-plugin": "^4.2.0",
124
+ "@stylistic/eslint-plugin-ts": "^4.2.0",
125
125
  "@types/ejs": "^3.1.5",
126
126
  "@types/eslint": "^9.6.1",
127
127
  "@types/html-minifier": "^4.0.5",
128
128
  "@types/html-minifier-terser": "^7.0.2",
129
129
  "@types/imagemin": "^9.0.1",
130
- "@types/node": "^22.13.8",
130
+ "@types/node": "^22.13.9",
131
131
  "@types/postcss-import": "^14.0.3",
132
132
  "@types/postcss-url": "^10.0.4",
133
133
  "@types/webpack-env": "^1.18.8",
134
134
  "@types/webpack-sources": "^3.2.3",
135
- "@typescript-eslint/parser": "^8.25.0",
135
+ "@typescript-eslint/parser": "^8.26.0",
136
136
  "css-loader": "^7.1.2",
137
137
  "cssnano": "^7.0.6",
138
138
  "documentation-website": "^1.0.345",
@@ -160,7 +160,7 @@
160
160
  "stylelint": "^16.15.0",
161
161
  "stylelint-config-standard": "^37.0.0",
162
162
  "stylelint-config-standard-scss": "^14.0.0",
163
- "typescript-eslint": "^8.25.0",
163
+ "typescript-eslint": "^8.26.0",
164
164
  "typescript-plugin-css-modules": "^5.1.0",
165
165
  "workbox-webpack-plugin": "^7.3.0"
166
166
  },
@@ -915,11 +915,6 @@
915
915
  "optimizer": {
916
916
  "babelMinify": {
917
917
  "bundle": {
918
- "plugin": {
919
- "parserOpts": {
920
- "strictMode": false
921
- }
922
- },
923
918
  "transform": {
924
919
  "removeConsole": true,
925
920
  "removeDebugger": true,
@@ -1094,8 +1089,7 @@
1094
1089
  "cache": true,
1095
1090
  "compileDebug": false,
1096
1091
  "debug": false,
1097
- "strict": true,
1098
- "_with": false
1092
+ "localsName": "_"
1099
1093
  },
1100
1094
  "compress": {
1101
1095
  "html": {
@@ -760,7 +760,7 @@ var genericLoader = {
760
760
  html: {
761
761
  // NOTE: This is only for the main entry template.
762
762
  main: {
763
- test: new RegExp('^' + (0, _clientnode.escapeRegularExpressions)(configuration.files.defaultHTML.template.filePath) + '(?: \\?.*)?$'),
763
+ test: new RegExp('^' + (0, _clientnode.escapeRegularExpressions)(configuration.files.defaultHTML.template.filePath) + '(?:\\?.*)?$'),
764
764
  use: configuration.files.defaultHTML.template.use
765
765
  },
766
766
  ejs: {
@@ -773,7 +773,7 @@ var genericLoader = {
773
773
  }));
774
774
  },
775
775
  include: configuration.path.source.asset.template,
776
- test: /\.html\.ejs(?: \?.*)?$/i,
776
+ test: /\.html\.ejs(?:\?.*)?$/i,
777
777
  use: _module.preprocessor.html.additional.pre.map(createEvaluateMapper('html.ejs')).concat(
778
778
  /*
779
779
  We might need to evaluate ejs before we are able to
@@ -803,7 +803,7 @@ var genericLoader = {
803
803
  }));
804
804
  },
805
805
  include: configuration.path.source.asset.template,
806
- test: /\.html(?: \?.*)?$/i,
806
+ test: /\.html(?:\?.*)?$/i,
807
807
  use: _module.html.additional.pre.map(createEvaluateMapper('html')).concat({
808
808
  loader: 'file?name=' + (0, _path.join)((0, _path.relative)(configuration.path.target.base, configuration.path.target.asset.template), "[name][ext]?".concat(configuration.hashAlgorithm, "=") + '[contenthash]')
809
809
  }, {
@@ -998,7 +998,7 @@ if (configuration.files.compose.cascadingStyleSheet && plugins.MiniCSSExtract) {
998
998
  So we inject live reload and hot module replacement manually.
999
999
  */
1000
1000
  if (htmlAvailable && configuration.debug && configuration.development.server.liveReload && !Object.prototype.hasOwnProperty.call(configuration.injection.entry.normalized, 'developmentHandler') && (configuration.development.includeClient || typeof configuration.development.includeClient !== 'boolean' && ['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]))) {
1001
- configuration.injection.entry.normalized.developmentHandler = ['webpack-dev-server/client/index.js?' + 'live-reload=true' + "&hot=".concat(configuration.development.server.hot ? 'true' : 'false') + "&http".concat(configuration.development.server.https ? 's' : '', ": //") + "".concat(configuration.development.server.host, ": ") + String(configuration.development.server.port)];
1001
+ configuration.injection.entry.normalized.developmentHandler = ['webpack-dev-server/client/index.js?' + 'live-reload=true' + "&hot=".concat(configuration.development.server.hot ? 'true' : 'false') + "&http".concat(configuration.development.server.https ? 's' : '', "://") + "".concat(configuration.development.server.host, ": ") + String(configuration.development.server.port)];
1002
1002
  if (configuration.development.server.hot) {
1003
1003
  configuration.injection.entry.normalized.developmentHandler.push('webpack/hot/dev-server.js');
1004
1004
  configuration.development.server.hot = false;
@@ -1027,16 +1027,10 @@ try {
1027
1027
  }
1028
1028
  if (!_module.optimizer.minimizer) {
1029
1029
  _module.optimizer.minimizer = [];
1030
- if (plugins.Terser)
1031
- /*
1032
- HTML-Templates shouldn't be transformed via terser to avoid html
1033
- webpack plugin throwing to not get markup as intermediate result.
1034
- */
1035
- _module.optimizer.minimizer.push(new plugins.Terser({
1036
- exclude: /\\.html(?: \\.js)?(?: \\?.*)?$/,
1037
- extractComments: false,
1038
- parallel: true
1039
- }));
1030
+ if (plugins.Terser) _module.optimizer.minimizer.push(new plugins.Terser({
1031
+ extractComments: false,
1032
+ parallel: true
1033
+ }));
1040
1034
  if (plugins.ImageMinimizer) _module.optimizer.minimizer.push(new plugins.ImageMinimizer((0, _clientnode.extend)(true, {
1041
1035
  minimizer: {
1042
1036
  implementation: plugins.ImageMinimizer.imageminMinify