@blotch/rsbuild-plugin-angular-lynx 22.2.1 → 22.2.3
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 +20 -3
- package/dist/544.js +21 -0
- package/dist/angular-cli-context.d.ts +34 -0
- package/dist/angular-diagnostics.d.ts +58 -0
- package/dist/angular-diagnostics.test.d.ts +1 -0
- package/dist/angular-rebuild-coordinator.d.ts +1 -1
- package/dist/angular.d.ts +5 -3
- package/dist/background-entry.d.ts +96 -0
- package/dist/background-entry.test.d.ts +1 -0
- package/dist/budgets-plugin.d.ts +64 -0
- package/dist/budgets-plugin.test.d.ts +1 -0
- package/dist/client/background-hot-updates.d.ts +50 -0
- package/dist/client/background-hot-updates.js +77 -0
- package/dist/client/background-hot-updates.test.d.ts +1 -0
- package/dist/client/css-hot-update.cjs +9 -0
- package/dist/client/css-hot-update.d.ts +44 -0
- package/dist/client/css-hot-update.js +42 -0
- package/dist/client/css-hot-update.test.d.ts +1 -0
- package/dist/client/hmr-background.js +16 -0
- package/dist/client/hmr-main-thread.js +9 -0
- package/dist/client/hmr-protocol.d.ts +74 -0
- package/dist/client/main-thread-hot-updates.d.ts +40 -0
- package/dist/client/main-thread-hot-updates.js +78 -0
- package/dist/client/main-thread-hot-updates.test.d.ts +1 -0
- package/dist/client/testing/test-context.d.ts +16 -0
- package/dist/component-styles-cache.d.ts +13 -31
- package/dist/component-styles.d.ts +73 -0
- package/dist/component-styles.test.d.ts +1 -0
- package/dist/cross-thread-transform.d.ts +38 -0
- package/dist/cross-thread-transform.test.d.ts +1 -0
- package/dist/css.d.ts +2 -2
- package/dist/entry.d.ts +28 -2
- package/dist/hot-updates.d.ts +67 -0
- package/dist/hot-updates.test.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1494 -638
- package/dist/layers.d.ts +6 -4
- package/dist/logger/dev-logger-middleware.d.ts +13 -7
- package/dist/logger/dev-logger.d.ts +13 -0
- package/dist/polyfills.js +56 -0
- package/dist/polyfills.test.d.ts +1 -0
- package/dist/pure-classes.d.ts +27 -0
- package/dist/pure-classes.test.d.ts +1 -0
- package/dist/resolve.d.ts +19 -0
- package/dist/resolve.test.d.ts +1 -0
- package/dist/split-chunks.d.ts +2 -2
- package/dist/styles/blur-view.css +16 -0
- package/dist/transform-module.d.ts +43 -17
- package/dist/utils/angular/budgets.d.ts +72 -0
- package/dist/utils/angular/budgets.test.d.ts +1 -0
- package/dist/utils/angular/build-internals.d.ts +14 -0
- package/dist/utils/angular/component-scope-id.d.ts +5 -3
- package/dist/utils/angular/component-style-bundler.d.ts +1 -1
- package/dist/utils/angular/options.d.ts +80 -2
- package/dist/utils/angular/read-workspace.d.ts +5 -1
- package/dist/utils/angular/resolve-primary-build.d.ts +26 -0
- package/dist/utils/angular/resolve-primary-build.test.d.ts +1 -0
- package/dist/utils/options.d.ts +40 -1
- package/package.json +13 -8
- package/dist/loaders/thread-globals-loader.d.ts +0 -8
- package/dist/loaders/thread-globals-loader.js +0 -6
- package/patch/patch-angular-build.cjs +0 -27
- /package/dist/{loaders/thread-globals-loader.test.d.ts → angular-cli-context.test.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blotch/rsbuild-plugin-angular-lynx",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.3",
|
|
4
4
|
"description": "Rsbuild plugin for building AngularLynx applications",
|
|
5
5
|
"homepage": "https://github.com/Blotch-Smart-Frames/AngularLynx#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"directory": "packages/rsbuild-plugin-angular-lynx"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
"patch"
|
|
16
|
+
"dist"
|
|
18
17
|
],
|
|
19
18
|
"type": "module",
|
|
20
19
|
"module": "./dist/index.js",
|
|
@@ -23,7 +22,8 @@
|
|
|
23
22
|
".": {
|
|
24
23
|
"types": "./dist/index.d.ts",
|
|
25
24
|
"import": "./dist/index.js"
|
|
26
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "rslib build",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"format": "oxfmt --write .",
|
|
38
38
|
"format:check": "oxfmt --check .",
|
|
39
39
|
"cspell": "cspell .",
|
|
40
|
-
"postinstall": "node ./patch/patch-angular-build.cjs",
|
|
41
40
|
"publish:local": "yalc publish --push"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
@@ -46,11 +45,9 @@
|
|
|
46
45
|
"@lynx-js/runtime-wrapper-webpack-plugin": "^0.2.4",
|
|
47
46
|
"@lynx-js/template-webpack-plugin": "^0.16.2",
|
|
48
47
|
"@lynx-js/webpack-runtime-globals": "^0.0.8",
|
|
49
|
-
"rsbuild-plugin-tailwindcss": "0.2.4",
|
|
50
48
|
"tiny-invariant": "^1.3.3"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
|
-
"@angular-devkit/build-angular": "^22.2.2",
|
|
54
51
|
"@angular-devkit/core": "^22.2.2",
|
|
55
52
|
"@angular/build": "^22.2.2",
|
|
56
53
|
"@rsbuild/core": "^2.2.9",
|
|
@@ -61,7 +58,6 @@
|
|
|
61
58
|
"typescript": "^6.0.3"
|
|
62
59
|
},
|
|
63
60
|
"peerDependencies": {
|
|
64
|
-
"@angular-devkit/build-angular": "^22.2.0",
|
|
65
61
|
"@angular-devkit/core": "^22.2.0",
|
|
66
62
|
"@angular/build": "^22.2.0",
|
|
67
63
|
"@angular/localize": "^22.2.0",
|
|
@@ -71,5 +67,14 @@
|
|
|
71
67
|
"@angular/localize": {
|
|
72
68
|
"optional": true
|
|
73
69
|
}
|
|
70
|
+
},
|
|
71
|
+
"ng-update": {
|
|
72
|
+
"packageGroup": [
|
|
73
|
+
"@blotch/angular-lynx",
|
|
74
|
+
"@blotch/angular-lynx-build",
|
|
75
|
+
"@blotch/angular-lynx-testing-library",
|
|
76
|
+
"@blotch/rsbuild-plugin-angular-lynx",
|
|
77
|
+
"@blotch/angular-lynx-native"
|
|
78
|
+
]
|
|
74
79
|
}
|
|
75
80
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Rspack } from '@rsbuild/core';
|
|
2
|
-
/**
|
|
3
|
-
* Prepends `globalThis["__MAIN_THREAD__"]=<value>;` to every module in the layer.
|
|
4
|
-
* Replaces the BannerPlugin approach — injections happen per-module during
|
|
5
|
-
* compilation instead of per-chunk after bundling.
|
|
6
|
-
*/
|
|
7
|
-
declare const threadGlobalsLoader: (this: Rspack.LoaderContext, source: string) => string;
|
|
8
|
-
export default threadGlobalsLoader;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const { readFileSync, writeFileSync } = require('node:fs');
|
|
2
|
-
|
|
3
|
-
const main = () => {
|
|
4
|
-
const angularBuildPackageJson =
|
|
5
|
-
require.resolve('@angular/build/package.json');
|
|
6
|
-
const fileContentsJson = JSON.parse(
|
|
7
|
-
readFileSync(angularBuildPackageJson, 'utf8'),
|
|
8
|
-
);
|
|
9
|
-
// Angular 22.2 moved the transformer out of `src/tools/esbuild/`.
|
|
10
|
-
fileContentsJson.exports['./src/tools/javascript-transformer'] =
|
|
11
|
-
'./src/tools/javascript-transformer/index.js';
|
|
12
|
-
fileContentsJson.exports['./src/tools/angular/compilation'] =
|
|
13
|
-
'./src/tools/angular/compilation/index.js';
|
|
14
|
-
fileContentsJson.exports[
|
|
15
|
-
'./src/tools/esbuild/angular/file-reference-tracker'
|
|
16
|
-
] = './src/tools/esbuild/angular/file-reference-tracker.js';
|
|
17
|
-
fileContentsJson.exports[
|
|
18
|
-
'./src/tools/esbuild/angular/component-stylesheets'
|
|
19
|
-
] = './src/tools/esbuild/angular/component-stylesheets.js';
|
|
20
|
-
|
|
21
|
-
writeFileSync(
|
|
22
|
-
angularBuildPackageJson,
|
|
23
|
-
JSON.stringify(fileContentsJson, null, 2),
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
main();
|
|
File without changes
|