@nx/angular-rspack 23.0.0-beta.7 → 23.0.0-beta.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"i18n-inline-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/i18n-inline-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAWnB,qBAAa,gBAAiB,YAAW,oBAAoB;;gBAWzD,aAAa,EAAE,oCAAoC,EACnD,WAAW,EAAE,WAAW;IAO1B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CA2OzB"}
1
+ {"version":3,"file":"i18n-inline-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/i18n-inline-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAWnB,qBAAa,gBAAiB,YAAW,oBAAoB;;gBAWzD,aAAa,EAAE,oCAAoC,EACnD,WAAW,EAAE,WAAW;IAO1B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAuPzB"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _I18nInlinePlugin_instances, _I18nInlinePlugin_pluginOptions, _I18nInlinePlugin_i18n, _I18nInlinePlugin_localizeToolsModule, _I18nInlinePlugin_outputPaths, _I18nInlinePlugin_checkAssetHasBeenProcessed, _I18nInlinePlugin_loadLocalizeTools, _I18nInlinePlugin_createI18nPlugins, _I18nInlinePlugin_assertIsError, _I18nInlinePlugin_transformWithBabel;
2
+ var _I18nInlinePlugin_instances, _I18nInlinePlugin_pluginOptions, _I18nInlinePlugin_i18n, _I18nInlinePlugin_localizeToolsModule, _I18nInlinePlugin_outputPaths, _I18nInlinePlugin_shouldSkipPerLocaleEmit, _I18nInlinePlugin_loadLocalizeTools, _I18nInlinePlugin_createI18nPlugins, _I18nInlinePlugin_assertIsError, _I18nInlinePlugin_transformWithBabel;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.I18nInlinePlugin = void 0;
5
5
  const tslib_1 = require("tslib");
@@ -47,7 +47,7 @@ class I18nInlinePlugin {
47
47
  const locale = tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_i18n, "f").locales[localeKey];
48
48
  const localeFiles = new Map();
49
49
  for (const [filename, { text, map }] of filesToInline.entries()) {
50
- if (tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_instances, "m", _I18nInlinePlugin_checkAssetHasBeenProcessed).call(this, filename)) {
50
+ if (tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_instances, "m", _I18nInlinePlugin_shouldSkipPerLocaleEmit).call(this, filename)) {
51
51
  continue;
52
52
  }
53
53
  const result = await tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_instances, "m", _I18nInlinePlugin_transformWithBabel).call(this, text, map, filename, localeKey, locale.translation, tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_pluginOptions, "f").advancedOptimizations);
@@ -61,7 +61,7 @@ class I18nInlinePlugin {
61
61
  // TODO: Add support for diagnostics
62
62
  }
63
63
  for (const [filename, source] of additionalFiles.entries()) {
64
- if (tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_instances, "m", _I18nInlinePlugin_checkAssetHasBeenProcessed).call(this, filename)) {
64
+ if (tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_instances, "m", _I18nInlinePlugin_shouldSkipPerLocaleEmit).call(this, filename)) {
65
65
  continue;
66
66
  }
67
67
  localeFiles.set(filename, {
@@ -90,8 +90,9 @@ class I18nInlinePlugin {
90
90
  }
91
91
  }
92
92
  exports.I18nInlinePlugin = I18nInlinePlugin;
93
- _I18nInlinePlugin_pluginOptions = new WeakMap(), _I18nInlinePlugin_i18n = new WeakMap(), _I18nInlinePlugin_localizeToolsModule = new WeakMap(), _I18nInlinePlugin_outputPaths = new WeakMap(), _I18nInlinePlugin_instances = new WeakSet(), _I18nInlinePlugin_checkAssetHasBeenProcessed = function _I18nInlinePlugin_checkAssetHasBeenProcessed(filename) {
94
- return tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_outputPaths, "f").has(filename.split('/')[0]);
93
+ _I18nInlinePlugin_pluginOptions = new WeakMap(), _I18nInlinePlugin_i18n = new WeakMap(), _I18nInlinePlugin_localizeToolsModule = new WeakMap(), _I18nInlinePlugin_outputPaths = new WeakMap(), _I18nInlinePlugin_instances = new WeakSet(), _I18nInlinePlugin_shouldSkipPerLocaleEmit = function _I18nInlinePlugin_shouldSkipPerLocaleEmit(filename) {
94
+ const segments = filename.split('/');
95
+ return tslib_1.__classPrivateFieldGet(this, _I18nInlinePlugin_outputPaths, "f").has(segments[0]) || segments.includes('..');
95
96
  }, _I18nInlinePlugin_loadLocalizeTools =
96
97
  /**
97
98
  * Attempts to load the `@angular/localize/tools` module containing the functionality to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular-rspack",
3
- "version": "23.0.0-beta.7",
3
+ "version": "23.0.0-beta.9",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -48,8 +48,8 @@
48
48
  "@ampproject/remapping": "2.3.0",
49
49
  "@babel/core": "7.28.3",
50
50
  "@discoveryjs/json-ext": "0.6.3",
51
- "@nx/angular-rspack-compiler": "23.0.0-beta.7",
52
- "@nx/devkit": "23.0.0-beta.7",
51
+ "@nx/angular-rspack-compiler": "23.0.0-beta.9",
52
+ "@nx/devkit": "23.0.0-beta.9",
53
53
  "ansi-colors": "4.1.3",
54
54
  "autoprefixer": "10.4.21",
55
55
  "deepmerge": "^4.3.1",