@angular-builders/custom-webpack 13.0.1-beta.2 → 13.1.0-beta.0

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/README.md CHANGED
@@ -287,7 +287,7 @@ The following properties are available:
287
287
  - `replaceDuplicatePlugins`: Defaults to `false`. If `true`, the plugins in custom webpack config will replace the corresponding plugins in default Angular CLI webpack configuration. If `false`, the [default behavior](#merging-plugins-configuration) will be applied.
288
288
  **Note that if `true`, this option will override `mergeRules` for `plugins` field.**
289
289
 
290
- Webpack configuration can be also written in TypeScript. In this case, it is the application's `tsConfig` file which will be use by `tsnode` for `customWebpackConfig.ts` execution. Given the following example:
290
+ Webpack configuration can be also written in TypeScript. In this case, it is the application's `tsConfig` file which will be used by `tsnode` for `customWebpackConfig.ts` execution. Given the following example:
291
291
 
292
292
  ```ts
293
293
  // extra-webpack.config.ts
@@ -494,6 +494,15 @@ In the example we add a paragraph with build configuration to your `index.html`.
494
494
 
495
495
  Full example [here](../../examples/custom-webpack/full-cycle-app).
496
496
 
497
+ # ES Modules (ESM) Support
498
+
499
+ Custom Webpack builder fully supports ESM.
500
+
501
+ - If your app has `"type": "module"` both `custom-webpack.js` and `index-transform.js` will be treated as ES modules, unless you change their file extension to `.cjs`. In that case they'll be treated as CommonJS Modules. [Example](../../examples/custom-webpack/sanity-app-esm).
502
+ - For `"type": "commonjs"` (or unspecified type) both `custom-webpack.js` and `index-transform.js` will be treated as CommonJS modules unless you change their file extension to `.mjs`. In that case they'll be treated as ES Modules. [Example](../../examples/custom-webpack/sanity-app).
503
+ - If you want to use TS config in ESM app, you must set the loader to `ts-node/esm` when running `ng build`. Also, in that case `tsconfig.json` for `ts-node` no longer defaults to `tsConfig` from the `browser` target - you have to specify it manually via environment variable. [Example](../../examples/custom-webpack/sanity-app-esm/package.json#L10).
504
+ _Note that tsconfig paths are not supported in TS configs within ESM apps. That is because [tsconfig-paths](https://github.com/dividab/tsconfig-paths) do not support ESM._
505
+
497
506
  # Further Reading
498
507
 
499
508
  - [Customizing Angular CLI build - an alternative to ng eject](https://medium.com/angular-in-depth/customizing-angular-cli-build-an-alternative-to-ng-eject-v2-c655768b48cc)
@@ -229,6 +229,16 @@
229
229
  ],
230
230
  "default": "warning"
231
231
  },
232
+ "i18nDuplicateTranslation": {
233
+ "type": "string",
234
+ "description": "How to handle duplicate translations for i18n.",
235
+ "enum": [
236
+ "warning",
237
+ "error",
238
+ "ignore"
239
+ ],
240
+ "default": "warning"
241
+ },
232
242
  "localize": {
233
243
  "description": "Translate the bundles in one or more locales.",
234
244
  "oneOf": [
@@ -1,4 +1,4 @@
1
- import { Path, logging } from '@angular-devkit/core';
1
+ import { logging, Path } from '@angular-devkit/core';
2
2
  import { Configuration } from 'webpack';
3
3
  import { CustomWebpackBuilderConfig } from './custom-webpack-builder-config';
4
4
  import { TargetOptions } from './type-definition';
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CustomWebpackBuilder = exports.defaultWebpackConfigPath = void 0;
13
13
  const core_1 = require("@angular-devkit/core");
14
- const webpack_config_merger_1 = require("./webpack-config-merger");
15
14
  const utils_1 = require("./utils");
15
+ const webpack_config_merger_1 = require("./webpack-config-merger");
16
16
  exports.defaultWebpackConfigPath = 'webpack.config.js';
17
17
  class CustomWebpackBuilder {
18
18
  static buildWebpackConfig(root, config, baseWebpackConfig, buildOptions, targetOptions, logger) {
@@ -23,7 +23,7 @@ class CustomWebpackBuilder {
23
23
  const webpackConfigPath = config.path || exports.defaultWebpackConfigPath;
24
24
  const path = `${(0, core_1.getSystemPath)(root)}/${webpackConfigPath}`;
25
25
  const tsConfig = `${(0, core_1.getSystemPath)(root)}/${buildOptions.tsConfig}`;
26
- const configOrFactoryOrPromise = resolveCustomWebpackConfig(path, tsConfig, logger);
26
+ const configOrFactoryOrPromise = yield resolveCustomWebpackConfig(path, tsConfig, logger);
27
27
  if (typeof configOrFactoryOrPromise === 'function') {
28
28
  // That exported function can be synchronous either
29
29
  // asynchronous. Given the following example:
@@ -43,13 +43,9 @@ class CustomWebpackBuilder {
43
43
  }
44
44
  exports.CustomWebpackBuilder = CustomWebpackBuilder;
45
45
  function resolveCustomWebpackConfig(path, tsConfig, logger) {
46
- (0, utils_1.tsNodeRegister)(path, tsConfig, logger);
47
- const customWebpackConfig = require(path);
48
- // If the user provides a configuration in TS file
49
- // then there are 2 cases for exporing an object. The first one is:
50
- // `module.exports = { ... }`. And the second one is:
51
- // `export default { ... }`. The ESM format is compiled into:
52
- // `{ default: { ... } }`
53
- return customWebpackConfig.default || customWebpackConfig;
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ (0, utils_1.tsNodeRegister)(path, tsConfig, logger);
48
+ return (0, utils_1.loadModule)(path);
49
+ });
54
50
  }
55
51
  //# sourceMappingURL=custom-webpack-builder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-webpack-builder.js","sourceRoot":"","sources":["../src/custom-webpack-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AAGpE,mEAAuD;AAEvD,mCAAyC;AAI5B,QAAA,wBAAwB,GAAG,mBAAmB,CAAC;AAgB5D,MAAa,oBAAoB;IAC/B,MAAM,CAAO,kBAAkB,CAC7B,IAAU,EACV,MAAkC,EAClC,iBAAgC,EAChC,YAAiB,EACjB,aAA4B,EAC5B,MAAyB;;YAEzB,IAAI,CAAC,MAAM,EAAE;gBACX,OAAO,iBAAiB,CAAC;aAC1B;YAED,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,IAAI,gCAAwB,CAAC;YAClE,MAAM,IAAI,GAAG,GAAG,IAAA,oBAAa,EAAC,IAAI,CAAC,IAAI,iBAAiB,EAAE,CAAC;YAC3D,MAAM,QAAQ,GAAG,GAAG,IAAA,oBAAa,EAAC,IAAI,CAAC,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;YACnE,MAAM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aAC1B;YAED,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,IAAI,gCAAwB,CAAC;YAClE,MAAM,IAAI,GAAG,GAAG,IAAA,oBAAa,EAAC,IAAI,CAAC,IAAI,iBAAiB,EAAE,CAAC;YAC3D,MAAM,QAAQ,GAAG,GAAG,IAAA,oBAAa,EAAC,IAAI,CAAC,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;YACnE,MAAM,wBAAwB,GAAG,MAAM,0BAA0B,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YAE1F,IAAI,OAAO,wBAAwB,KAAK,UAAU,EAAE;gBAClD,mDAAmD;gBACnD,6CAA6C;gBAC7C,+CAA+C;gBAC/C,OAAO,wBAAwB,CAAC,iBAAiB,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;aACjF;YAED,qEAAqE;YACrE,uCAAuC;YACvC,8DAA8D;YAC9D,iDAAiD;YACjD,6BAA6B;YAC7B,uCAAuC;YACvC,MAAM,cAAc,GAAG,MAAM,wBAAwB,CAAC;YAEtD,OAAO,IAAA,oCAAY,EACjB,iBAAiB,EACjB,cAAc,EACd,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,uBAAuB,CAC/B,CAAC;QACJ,CAAC;KAAA;CACF;AAxCD,oDAwCC;AAED,SAAe,0BAA0B,CACvC,IAAY,EACZ,QAAgB,EAChB,MAAyB;;QAEzB,IAAA,sBAAc,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAEvC,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA"}
@@ -142,6 +142,16 @@
142
142
  ],
143
143
  "default": "warning"
144
144
  },
145
+ "i18nDuplicateTranslation": {
146
+ "type": "string",
147
+ "description": "How to handle duplicate translations for i18n.",
148
+ "enum": [
149
+ "warning",
150
+ "error",
151
+ "ignore"
152
+ ],
153
+ "default": "warning"
154
+ },
145
155
  "localize": {
146
156
  "description": "Translate the bundles in one or more locales.",
147
157
  "oneOf": [
@@ -21,9 +21,10 @@ const indexHtmlTransformFactory = ({ indexTransform, tsConfig }, { workspaceRoot
21
21
  if (!indexTransform)
22
22
  return null;
23
23
  (0, utils_1.tsNodeRegister)(indexTransform, `${(0, core_1.getSystemPath)((0, core_1.normalize)(workspaceRoot))}/${tsConfig}`, logger);
24
- const indexModule = require(`${(0, core_1.getSystemPath)((0, core_1.normalize)(workspaceRoot))}/${indexTransform}`);
25
- const transform = indexModule.default || indexModule;
26
- return (indexHtml) => __awaiter(void 0, void 0, void 0, function* () { return transform(target, indexHtml); });
24
+ return (indexHtml) => __awaiter(void 0, void 0, void 0, function* () {
25
+ const transform = yield (0, utils_1.loadModule)(`${(0, core_1.getSystemPath)((0, core_1.normalize)(workspaceRoot))}/${indexTransform}`);
26
+ return transform(target, indexHtml);
27
+ });
27
28
  };
28
29
  exports.indexHtmlTransformFactory = indexHtmlTransformFactory;
29
30
  const getTransforms = (options, context) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"transform-factories.js","sourceRoot":"","sources":["../src/transform-factories.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,+CAAgE;AAEhE,qEAAgE;AAEhE,mCAAyC;AAElC,MAAM,mCAAmC,GAI9C,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,CAC/C,oBAAoB,CAAC,EAAE;IACrB,OAAO,6CAAoB,CAAC,kBAAkB,CAC5C,IAAA,gBAAS,EAAC,aAAa,CAAC,EACxB,OAAO,CAAC,mBAAmB,EAC3B,oBAAoB,EACpB,OAAO,EACP,MAAM,EACN,MAAM,CACP,CAAC;AACJ,CAAC,CAAC;AAdS,QAAA,mCAAmC,uCAc5C;AAEG,MAAM,yBAAyB,GAGZ,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;IAC5F,IAAI,CAAC,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G,MAAM,yBAAyB,GAGZ,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;IAC5F,IAAI,CAAC,cAAc;QAAE,OAAO,IAAI,CAAC;IACjC,IAAA,sBAAc,EAAC,cAAc,EAAE,GAAG,IAAA,oBAAa,EAAC,IAAA,gBAAS,EAAC,aAAa,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC;IAEjG,OAAO,CAAO,SAAiB,EAAE,EAAE;QACjC,MAAM,SAAS,GAAG,MAAM,IAAA,kBAAU,EAChC,GAAG,IAAA,oBAAa,EAAC,IAAA,gBAAS,EAAC,aAAa,CAAC,CAAC,IAAI,cAAc,EAAE,CAC/D,CAAC;QACF,OAAO,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,yBAAyB,6BAapC;AAEK,MAAM,aAAa,GAAG,CAAC,OAA4B,EAAE,OAAuB,EAAE,EAAE,CAAC,CAAC;IACvF,oBAAoB,EAAE,IAAA,2CAAmC,EAAC,OAAO,EAAE,OAAO,CAAC;IAC3E,SAAS,EAAE,IAAA,iCAAyB,EAAC,OAAO,EAAE,OAAO,CAAC;CACvD,CAAC,CAAC;AAHU,QAAA,aAAa,iBAGvB"}
package/dist/utils.d.ts CHANGED
@@ -5,3 +5,9 @@ import { logging } from '@angular-devkit/core';
5
5
  * @todo tsNodeRegistration: require ts-node if file extension is TypeScript
6
6
  */
7
7
  export declare function tsNodeRegister(file: string, tsConfig: string, logger: logging.LoggerApi): void;
8
+ /**
9
+ * Loads CJS and ESM modules based on extension
10
+ * @param path path to the module
11
+ * @returns
12
+ */
13
+ export declare function loadModule<T>(path: string): Promise<T>;
package/dist/utils.js CHANGED
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tsNodeRegister = void 0;
12
+ exports.loadModule = exports.tsNodeRegister = void 0;
13
+ const path_1 = require("path");
14
+ const url_1 = require("url");
4
15
  const _tsNodeRegister = (() => {
5
16
  let lastTsConfig;
6
17
  return (tsConfig, logger) => {
@@ -44,4 +55,70 @@ function tsNodeRegister(file = '', tsConfig, logger) {
44
55
  }
45
56
  }
46
57
  exports.tsNodeRegister = tsNodeRegister;
58
+ /**
59
+ * This uses a dynamic import to load a module which may be ESM.
60
+ * CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
61
+ * will currently, unconditionally downlevel dynamic import into a require call.
62
+ * require calls cannot load ESM code and will result in a runtime error. To workaround
63
+ * this, a Function constructor is used to prevent TypeScript from changing the dynamic import.
64
+ * Once TypeScript provides support for keeping the dynamic import this workaround can
65
+ * be dropped.
66
+ *
67
+ * @param modulePath The path of the module to load.
68
+ * @returns A Promise that resolves to the dynamically imported module.
69
+ */
70
+ function loadEsmModule(modulePath) {
71
+ return new Function('modulePath', `return import(modulePath);`)(modulePath);
72
+ }
73
+ /**
74
+ * Loads CJS and ESM modules based on extension
75
+ * @param path path to the module
76
+ * @returns
77
+ */
78
+ function loadModule(path) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ switch ((0, path_1.extname)(path)) {
81
+ case '.mjs':
82
+ // Load the ESM configuration file using the TypeScript dynamic import workaround.
83
+ // Once TypeScript provides support for keeping the dynamic import this workaround can be
84
+ // changed to a direct dynamic import.
85
+ return (yield loadEsmModule((0, url_1.pathToFileURL)(path))).default;
86
+ case '.cjs':
87
+ return require(path);
88
+ case '.ts':
89
+ try {
90
+ // If it's a TS file then there are 2 cases for exporing an object.
91
+ // The first one is `export blah`, transpiled into `module.exports = { blah} `.
92
+ // The second is `export default blah`, transpiled into `{ default: { ... } }`.
93
+ return require(path).default || require(path);
94
+ }
95
+ catch (e) {
96
+ if (e.code === 'ERR_REQUIRE_ESM') {
97
+ // Load the ESM configuration file using the TypeScript dynamic import workaround.
98
+ // Once TypeScript provides support for keeping the dynamic import this workaround can be
99
+ // changed to a direct dynamic import.
100
+ return (yield loadEsmModule((0, url_1.pathToFileURL)(path))).default;
101
+ }
102
+ throw e;
103
+ }
104
+ //.js
105
+ default:
106
+ // The file could be either CommonJS or ESM.
107
+ // CommonJS is tried first then ESM if loading fails.
108
+ try {
109
+ return require(path);
110
+ }
111
+ catch (e) {
112
+ if (e.code === 'ERR_REQUIRE_ESM') {
113
+ // Load the ESM configuration file using the TypeScript dynamic import workaround.
114
+ // Once TypeScript provides support for keeping the dynamic import this workaround can be
115
+ // changed to a direct dynamic import.
116
+ return (yield loadEsmModule((0, url_1.pathToFileURL)(path))).default;
117
+ }
118
+ throw e;
119
+ }
120
+ }
121
+ });
122
+ }
123
+ exports.loadModule = loadModule;
47
124
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE;IAC5B,IAAI,YAAgC,CAAC;IACrC,OAAO,CAAC,QAAgB,EAAE,MAAyB,EAAE,EAAE;QACrD,qEAAqE;QACrE,IAAI,YAAY,IAAI,YAAY,KAAK,QAAQ,EAAE;YAC7C,MAAM,CAAC,IAAI,CAAC;iCACe,YAAY;iCACZ,QAAQ,EAAE,CAAC,CAAC;SACxC;QAED,IAAI,YAAY,EA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AAC,OAAO,CAAC;YAC5E,KAAK,MAAM;gBACT,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;YACvB,KAAK,KAAK;gBACR,IAAI;oBACF,mEAAmE;oBACnE,+EAA+E;oBAC/E,+EAA+E;oBAC/E,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;iBAC/C;gBAAC,OAAO,CAAM,EAAE;oBACf,IAAI,CAAC,CAAC,IAAI,KAAK,iBAAiB,EAAE;wBAChC,kFAAkF;wBAClF,yFAAyF;wBACzF,sCAAsC;wBACtC,OAAO,CAAC,MAAM,aAAa,CAAiB,IAAA,mBAAa,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;qBAC3E;oBACD,MAAM,CAAC,CAAC;iBACT;YACH,KAAK;YACL;gBACE,4CAA4C;gBAC5C,qDAAqD;gBACrD,IAAI;oBACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;iBACtB;gBAAC,OAAO,CAAM,EAAE;oBACf,IAAI,CAAC,CAAC,IAAI,KAAK,iBAAiB,EAAE;wBAChC,kFAAkF;wBAClF,yFAAyF;wBACzF,sCAAsC;wBACtC,OAAO,CAAC,MAAM,aAAa,CAAiB,IAAA,mBAAa,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;qBAC3E;oBAED,MAAM,CAAC,CAAC;iBACT;SACJ;IACH,CAAC;CAAA;AAzCD,gCAyCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-builders/custom-webpack",
3
- "version": "13.0.1-beta.2",
3
+ "version": "13.1.0-beta.0",
4
4
  "description": "Custom webpack builders for Angular build facade. Allow to modify Angular build configuration without ejecting it",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -53,5 +53,5 @@
53
53
  "rimraf": "^3.0.2",
54
54
  "typescript": "^4.5.4"
55
55
  },
56
- "gitHead": "e974d6362e233a00ff7e1e776ea9e7306eb89765"
56
+ "gitHead": "61474c72a91486bde01af49cd7c2e2047b09070a"
57
57
  }