@nx/angular-rspack 21.4.0 → 21.5.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
@@ -96,14 +96,3 @@ npx nx@latest init
96
96
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
97
97
  width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
98
98
 
99
-
100
- ## Documentation & Resources
101
-
102
- - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
103
- - [Intro to Nx](https://nx.dev/getting-started/intro)
104
- - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
105
- - [Blog Posts About Nx](https://nx.dev/blog)
106
-
107
- <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
108
- width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
109
-
package/README.md__tpl__ CHANGED
@@ -46,5 +46,3 @@ npx nx serve myorg
46
46
  ```
47
47
 
48
48
  {{content}}
49
-
50
- {{resources}}
@@ -1 +1 @@
1
- {"version":3,"file":"postcss-cli-resources.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/postcss-cli-resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAe,MAAM,EAAE,MAAM,SAAS,CAAC;AAgBnD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAO,cAAc,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAcD,eAAO,MAAM,OAAO,OAAO,CAAC;AAE5B,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAuKrE"}
1
+ {"version":3,"file":"postcss-cli-resources.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/postcss-cli-resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAe,MAAM,EAAE,MAAM,SAAS,CAAC;AAgBnD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAO,cAAc,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAcD,eAAO,MAAM,OAAO,OAAO,CAAC;AAE5B,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAyKrE"}
@@ -12,7 +12,6 @@ exports.default = default_1;
12
12
  const tslib_1 = require("tslib");
13
13
  const loader_utils_1 = require("loader-utils");
14
14
  const path = tslib_1.__importStar(require("node:path"));
15
- const url = tslib_1.__importStar(require("node:url"));
16
15
  const misc_helpers_1 = require("./misc-helpers");
17
16
  function wrapUrl(url) {
18
17
  let wrappedUrl;
@@ -60,7 +59,9 @@ function default_1(options) {
60
59
  if (inputUrl.startsWith('~')) {
61
60
  inputUrl = inputUrl.slice(1);
62
61
  }
63
- const { pathname, hash, search } = url.parse(inputUrl.replace(/\\/g, '/'));
62
+ const normalizedUrl = inputUrl.replace(/\\/g, '/');
63
+ const parsedUrl = new URL(normalizedUrl, 'file:///');
64
+ const { pathname, hash, search } = parsedUrl;
64
65
  const resolver = (file, base) => new Promise((resolve, reject) => {
65
66
  loader.resolve(base, decodeURI(file), (err, result) => {
66
67
  if (err) {
@@ -96,10 +97,10 @@ function default_1(options) {
96
97
  }
97
98
  let outputUrl = outputPath.replace(/\\/g, '/');
98
99
  if (hash || search) {
99
- outputUrl = url.format({ pathname: outputUrl, hash, search });
100
+ outputUrl = outputUrl + (search || '') + (hash || '');
100
101
  }
101
102
  if (deployUrl && !extracted) {
102
- outputUrl = url.resolve(deployUrl, outputUrl);
103
+ outputUrl = new URL(outputUrl, deployUrl).href;
103
104
  }
104
105
  resourceCache.set(cacheKey, outputUrl);
105
106
  resolve(outputUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular-rspack",
3
- "version": "21.4.0",
3
+ "version": "21.5.0-beta.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,6 +8,7 @@
8
8
  "description": "Rspack Plugin and Loaders for building Angular.",
9
9
  "author": "Victor Savkin",
10
10
  "license": "MIT",
11
+ "homepage": "https://nx.dev",
11
12
  "bugs": {
12
13
  "url": "https://github.com/nrwl/nx/issues"
13
14
  },
@@ -47,8 +48,8 @@
47
48
  "@ampproject/remapping": "2.3.0",
48
49
  "@babel/core": "7.26.10",
49
50
  "@discoveryjs/json-ext": "0.6.3",
50
- "@nx/angular-rspack-compiler": "21.4.0",
51
- "@nx/devkit": "21.4.0",
51
+ "@nx/angular-rspack-compiler": "21.5.0-beta.0",
52
+ "@nx/devkit": "21.5.0-beta.0",
52
53
  "ansi-colors": "4.1.3",
53
54
  "autoprefixer": "10.4.21",
54
55
  "deepmerge": "^4.3.1",