weboptimizer 4.0.37 → 4.0.38

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.
@@ -4,5 +4,5 @@
4
4
  * @returns A promise holding a boolean which indicates directory existence.
5
5
  */
6
6
  export declare const isFile: (filePath: string) => Promise<boolean>;
7
- export declare const config: import("eslint/config").Config[];
7
+ export declare const config: import("eslint/config").ConfigObject[];
8
8
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.37",
3
+ "version": "4.0.38",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -94,7 +94,7 @@
94
94
  "babel-loader": "^10.1.1",
95
95
  "babel-plugin-polyfill-corejs3": "^1.0.0",
96
96
  "babel-plugin-transform-rewrite-imports": "^1.5.4",
97
- "clientnode": "4.0.1469",
97
+ "clientnode": "4.0.1472",
98
98
  "core-js": "^3.49.0",
99
99
  "ejs": "^6.0.1",
100
100
  "exports-loader": "^5.0.0",
@@ -102,7 +102,7 @@
102
102
  "glob-all": "^3.3.1",
103
103
  "html-loader": "^5.1.0",
104
104
  "html-minifier": "^4.0.0",
105
- "html-webpack-plugin": "^5.6.7",
105
+ "html-webpack-plugin": "^5.6.8",
106
106
  "imports-loader": "^5.0.0",
107
107
  "jest-environment-jsdom": "^30.4.1",
108
108
  "rimraf": "^6.1.3",
@@ -130,7 +130,7 @@
130
130
  "@typescript-eslint/parser": "^8.65.0",
131
131
  "css-loader": "^7.1.4",
132
132
  "cssnano": "^8.0.2",
133
- "eslint": "^10.7.0",
133
+ "eslint": "^10.8.0",
134
134
  "eslint-config-google": "^0.14.0",
135
135
  "eslint-plugin-jsdoc": "^63.2.2",
136
136
  "favicons": "^7.3.1",
@@ -142,7 +142,7 @@
142
142
  "mini-css-extract-plugin": "^2.10.2",
143
143
  "mkdirp": "^3.0.1",
144
144
  "node-fetch": "^3.3.2",
145
- "postcss": "^8.5.22",
145
+ "postcss": "^8.5.23",
146
146
  "postcss-fontpath": "^1.0.0",
147
147
  "postcss-import": "^16.1.1",
148
148
  "postcss-loader": "^8.2.1",
@@ -82,12 +82,19 @@ const {
82
82
  // region initialization
83
83
  /// region determine library name
84
84
  const exportFormatsNeedingAValidVariableName = ['assign', 'global', 'this', 'var', 'window'];
85
+ const exportFormatsNeedingUnsetLibraryName = ['modern-module'];
85
86
  let libraryName;
86
- if (configuration.libraryName) libraryName = configuration.libraryName;else if (Object.keys(configuration.injection.entry.normalized).length > 1) libraryName = '[name]';else {
87
- libraryName = configuration.name;
88
- if (exportFormatsNeedingAValidVariableName.includes(configuration.exportFormat.self)) libraryName = convertToValidVariableName(libraryName);
87
+ if (!exportFormatsNeedingUnsetLibraryName.includes(configuration.exportFormat.self)) {
88
+ if (configuration.libraryName) libraryName = configuration.libraryName;else if (Object.keys(configuration.injection.entry.normalized).length > 1) libraryName = '[name]';else {
89
+ libraryName = configuration.name;
90
+ if (exportFormatsNeedingAValidVariableName.includes(configuration.exportFormat.self)) libraryName = convertToValidVariableName(libraryName);
91
+ }
92
+ if (libraryName === '*') libraryName = exportFormatsNeedingAValidVariableName.includes(configuration.exportFormat.self) ? Object.keys(configuration.injection.entry.normalized).map(name => convertToValidVariableName(name)) : undefined;
89
93
  }
90
- if (libraryName === '*') libraryName = exportFormatsNeedingAValidVariableName.includes(configuration.exportFormat.self) ? Object.keys(configuration.injection.entry.normalized).map(name => convertToValidVariableName(name)) : undefined;
94
+ console.log();
95
+ console.log('TODO', libraryName, configuration.exportFormat.self);
96
+ console.log();
97
+
91
98
  /// endregion
92
99
  /// region plugins
93
100
  const pluginInstances = [];