weboptimizer 2.0.1247 → 2.0.1249

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.d.ts CHANGED
@@ -2,13 +2,13 @@ import { Encoding, Mapping } from 'clientnode/type';
2
2
  import { Options, TemplateFunction as EJSTemplateFunction } from 'ejs';
3
3
  import { LoaderContext } from 'webpack';
4
4
  import { Extensions, Replacements } from './type';
5
- export declare type PreCompiledTemplateFunction = ((..._parameters: Array<unknown>) => string);
5
+ export declare type PreCompiledTemplateFunction = ((...parameters: Array<unknown>) => string);
6
6
  export declare type TemplateFunction = EJSTemplateFunction | PreCompiledTemplateFunction;
7
7
  export declare type CompilerOptions = Options & {
8
8
  encoding: Encoding;
9
9
  isString?: boolean;
10
10
  };
11
- export declare type CompileFunction = (_template: string, _options?: Partial<CompilerOptions>, _compileSteps?: number) => TemplateFunction;
11
+ export declare type CompileFunction = (template: string, options?: Partial<CompilerOptions>, compileSteps?: number) => TemplateFunction;
12
12
  export declare type LoaderConfiguration = Mapping<unknown> & {
13
13
  compiler: Partial<CompilerOptions>;
14
14
  compileSteps: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1247",
3
+ "version": "2.0.1249",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -485,7 +485,7 @@ if (htmlAvailable) pluginInstances.push({
485
485
  var _loaderConfiguration$;
486
486
  var loaderConfiguration = _step9.value;
487
487
  if ((_loaderConfiguration$ = loaderConfiguration.options) !== null && _loaderConfiguration$ !== void 0 && _loaderConfiguration$.compileSteps && typeof loaderConfiguration.options.compileSteps === 'number') data.html = _ejsLoader["default"].bind({
488
- query: _clientnode["default"].extend(true, loaderConfiguration.options || {}, htmlFileSpecification.template.postCompileOptions)
488
+ query: _clientnode["default"].extend(true, _clientnode["default"].copy(loaderConfiguration.options) || {}, htmlFileSpecification.template.postCompileOptions)
489
489
  })(data.html);
490
490
  }
491
491
  } catch (err) {