weboptimizer 2.0.1088 → 2.0.1092

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/ejsLoader.js CHANGED
@@ -42,8 +42,6 @@ var _fs = require("fs");
42
42
 
43
43
  var _htmlMinifier = require("html-minifier");
44
44
 
45
- var _loaderUtils = require("loader-utils");
46
-
47
45
  var _path = require("path");
48
46
 
49
47
  var _configurator = _interopRequireDefault(require("./configurator"));
@@ -85,7 +83,7 @@ function _default(source) {
85
83
  aliases: {},
86
84
  replacements: {}
87
85
  }
88
- }, 'query' in this ? (0, _loaderUtils.getOptions)(this) || {} : {}), /#%%%#/g, '!');
86
+ }, 'getOptions' in this ? this.getOptions() || {} : {}), /#%%%#/g, '!');
89
87
 
90
88
  var compile = function compile(template) {
91
89
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : givenOptions.compiler;
@@ -265,7 +263,7 @@ function _default(source) {
265
263
  client: Boolean(givenOptions.compileSteps % 2),
266
264
  compileDebug: givenOptions.debug,
267
265
  debug: givenOptions.debug,
268
- filename: 'remainingRequest' in this ? (0, _loaderUtils.getRemainingRequest)(this).replace(/^!/, '') : this.resourcePath || 'unknown',
266
+ filename: this.resourcePath || 'unknown',
269
267
  isString: true,
270
268
  localsName: 'scope'
271
269
  }), givenOptions.compileSteps)(givenOptions.locals || {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1088",
3
+ "version": "2.0.1092",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -112,6 +112,7 @@
112
112
  "@babel/eslint-parser": "*",
113
113
  "@types/cssnano": "*",
114
114
  "@types/ejs": "*",
115
+ "@types/favicons": "*",
115
116
  "@types/html-minifier": "*",
116
117
  "@types/html-minifier-terser": "*",
117
118
  "@types/jest": "*",
@@ -156,6 +157,7 @@
156
157
  "@babel/eslint-parser": "*",
157
158
  "@babel/preset-react": "*",
158
159
  "@types/ejs": "*",
160
+ "@types/favicons": "*",
159
161
  "@types/html-minifier": "*",
160
162
  "@types/jest": "*",
161
163
  "@types/jsdom": "*",
@@ -198,6 +200,9 @@
198
200
  "@types/ejs": {
199
201
  "optional": true
200
202
  },
203
+ "@types/favicons": {
204
+ "optional": true
205
+ },
201
206
  "@types/html-minifier": {
202
207
  "optional": true
203
208
  },
package/type.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AnyFunction, Encoding, Mapping, PlainObject, SecondParameter } from 'clientnode/type';
2
- import { Configuration as FaviconConfiguration } from 'favicons';
2
+ import { FaviconOptions } from 'favicons';
3
3
  import HtmlWebpackPlugin from 'html-webpack-plugin';
4
4
  import { JSDOM } from 'jsdom';
5
5
  import { DefinePlugin as WebpackDefinePlugin, Configuration as BaseWebpackConfiguration, IgnorePlugin as WebpackIgnorePlugin, ModuleOptions as WebpackModuleOptions, RuleSetRule as WebpackRuleSetRule, WebpackOptionsNormalized } from 'webpack';
@@ -267,7 +267,7 @@ export interface ResolvedConfiguration {
267
267
  self: ExportFormat;
268
268
  };
269
269
  extensions: Extensions;
270
- favicon: Mapping<FaviconConfiguration> & {
270
+ favicon: Mapping<FaviconOptions> & {
271
271
  logo: string;
272
272
  };
273
273
  files: {
@@ -1270,11 +1270,13 @@ var webpackConfiguration = _clientnode["default"].extend(true, {
1270
1270
  filename: (0, _path.relative)(_configurator["default"].path.target.base, _configurator["default"].files.compose.javaScript),
1271
1271
  globalObject: _configurator["default"].exportFormat.globalObject,
1272
1272
  hashFunction: _configurator["default"].hashAlgorithm,
1273
- library: libraryName === '*' ? undefined : libraryName,
1274
- libraryTarget: _configurator["default"].exportFormat.self,
1273
+ library: {
1274
+ name: libraryName === '*' ? undefined : libraryName,
1275
+ type: _configurator["default"].exportFormat.self,
1276
+ umdNamedDefine: true
1277
+ },
1275
1278
  path: _configurator["default"].path.target.base,
1276
- publicPath: _configurator["default"].path.target["public"],
1277
- umdNamedDefine: true
1279
+ publicPath: _configurator["default"].path.target["public"]
1278
1280
  },
1279
1281
  performance: _configurator["default"].performanceHints,
1280
1282