weboptimizer 2.0.1604 → 2.0.1606

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.
Files changed (3) hide show
  1. package/helper.js +4 -4
  2. package/package.json +5 -5
  3. package/type.d.ts +3 -3
package/helper.js CHANGED
@@ -230,7 +230,7 @@ var determineExternalRequest = exports.determineExternalRequest = function deter
230
230
  since we pass an already resolved request.
231
231
  */
232
232
  var filePath = determineModuleFilePath(resolvedRequest, {}, {}, {
233
- file: extensions.file.external
233
+ file: extensions.file.external.concat(extensions.file.internal)
234
234
  }, context, requestContext, pathsToIgnore, relativeModuleLocations, packageEntryFileNames, packageMainPropertyNames, packageAliasPropertyNames, encoding);
235
235
  /*
236
236
  NOTE: We mark dependencies as external if there file couldn't be
@@ -272,9 +272,9 @@ var determineExternalRequest = exports.determineExternalRequest = function deter
272
272
  parts.splice(-1, 1);
273
273
  }
274
274
  /*
275
- NOTE: We mark dependencies as external if they does not contain a
276
- loader in their request and aren't part of the current main package or
277
- have a file extension other than javaScript aware.
275
+ NOTE: We mark dependencies as external if they do not contain a loader
276
+ in their request and aren't part of the current main package or have a
277
+ file extension other than javaScript aware.
278
278
  */
279
279
  if (!inPlaceNormalLibrary && (extensions.file.external.length === 0 || filePath && extensions.file.external.includes((0, _path.extname)(filePath)) || !filePath && extensions.file.external.includes('')) && !(inPlaceDynamicLibrary && request.includes('!')) && (!filePath && inPlaceDynamicLibrary || filePath && (!filePath.startsWith(context) || isFilePathInLocation(filePath, externalModuleLocations)))) return applyContext(resolvedRequest, requestContext, referencePath, aliases, moduleReplacements, relativeModuleLocations) || null;
280
280
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1604",
3
+ "version": "2.0.1606",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -98,7 +98,7 @@
98
98
  "babel-loader": "^10.0.0",
99
99
  "babel-plugin-transform-modern-regexp": "^0.0.6",
100
100
  "babel-preset-minify": "^0.5.2",
101
- "clientnode": "3.0.1304",
101
+ "clientnode": "3.0.1306",
102
102
  "ejs": "^3.1.10",
103
103
  "exports-loader": "^5.0.0",
104
104
  "extract-loader": "^5.1.0",
@@ -124,7 +124,7 @@
124
124
  "@types/html-minifier": "^4.0.5",
125
125
  "@types/html-minifier-terser": "^7.0.2",
126
126
  "@types/imagemin": "^9.0.1",
127
- "@types/node": "^24.3.1",
127
+ "@types/node": "^24.3.3",
128
128
  "@types/postcss-import": "^14.0.3",
129
129
  "@types/postcss-url": "^10.0.4",
130
130
  "@types/webpack-env": "^1.18.8",
@@ -135,7 +135,7 @@
135
135
  "documentation-website": "^1.0.394",
136
136
  "eslint": "^9.35.0",
137
137
  "eslint-config-google": "^0.14.0",
138
- "eslint-plugin-jsdoc": "^55.3.0",
138
+ "eslint-plugin-jsdoc": "^57.0.7",
139
139
  "favicons": "^7.2.0",
140
140
  "favicons-webpack-plugin": "^6.0.1",
141
141
  "globals": "^16.4.0",
@@ -156,7 +156,7 @@
156
156
  "style-loader": "^4.0.0",
157
157
  "stylelint": "^16.24.0",
158
158
  "stylelint-config-standard": "^39.0.0",
159
- "stylelint-config-standard-scss": "^15.0.1",
159
+ "stylelint-config-standard-scss": "^16.0.0",
160
160
  "typescript-eslint": "^8.43.0",
161
161
  "typescript-plugin-css-modules": "^5.2.0",
162
162
  "workbox-webpack-plugin": "^7.3.0"
package/type.d.ts CHANGED
@@ -34,7 +34,7 @@ export interface PackageDescriptor {
34
34
  }
35
35
  export type Replacements = Mapping<SecondParameter<string['replace']>>;
36
36
  export type Resolvable = {
37
- [_K in '__evaluate__' | '__execute__']?: Resolvable;
37
+ [K in '__evaluate__' | '__execute__']?: Resolvable;
38
38
  } & Mapping<unknown>;
39
39
  export interface RedundantRequest {
40
40
  path: string;
@@ -289,7 +289,7 @@ export interface ResolvedConfiguration {
289
289
  files: {
290
290
  additionalPaths: Array<string>;
291
291
  compose: {
292
- cascadingStyleSheet: string | ((_asset: unknown) => string);
292
+ cascadingStyleSheet: string | ((asset: unknown) => string);
293
293
  image: string;
294
294
  javaScript: string;
295
295
  };
@@ -434,7 +434,7 @@ export interface GenericLoader {
434
434
  export type Loader = GenericLoader & Mapping<WebpackRuleSetRule>;
435
435
  export interface EvaluationScope {
436
436
  configuration: ResolvedConfiguration;
437
- isFilePathInDependencies: (_filePath: string) => boolean;
437
+ isFilePathInDependencies: (filePath: string) => boolean;
438
438
  loader: Loader;
439
439
  require: typeof require;
440
440
  }