@ohos-ports/rsbuild-core 2.2.9-beta.0 → 2.2.13-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 +12 -0
- package/bin/rsbuild.js +3 -1
- package/compiled/@rstackjs/load-config/package.json +1 -1
- package/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.d.ts +16 -2
- package/compiled/html-rspack-plugin/index.js +78 -28
- package/compiled/jiti/lib/jiti-cli.mjs +0 -0
- package/compiled/postcss/index.js +1 -1
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/ws/index.d.ts +4 -0
- package/compiled/ws/package.json +1 -1
- package/dist/1.js +84 -0
- package/dist/client/hmr.js +7 -2
- package/dist/client/overlay.js +9 -6
- package/dist/cssUrlLoader.mjs +18 -7
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/path.d.ts +9 -0
- package/dist/http-proxy-middleware.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/launch-editor-middleware.js +1 -1
- package/dist/loader/cssUrlLoader.d.ts +1 -0
- package/dist/m.js +446 -353
- package/dist/manifest-plugin.js +1 -1
- package/dist/memfs.js +1 -1
- package/dist/plugins/fileSize.d.ts +11 -0
- package/dist/server/assets-middleware/getFileFromUrl.d.ts +1 -0
- package/dist/server/assets-middleware/setupOutputFileSystem.d.ts +1 -2
- package/dist/server/assets-middleware/setupWriteToDisk.d.ts +19 -7
- package/dist/server/browserLogs.d.ts +5 -2
- package/dist/server/gracefulShutdown.d.ts +1 -2
- package/dist/server/helper.d.ts +2 -2
- package/dist/server/hostCheck.d.ts +7 -0
- package/dist/trace-mapping.js +16 -14
- package/dist/types/config.d.ts +21 -2
- package/dist/types/plugin.d.ts +1 -0
- package/dist/ws.js +2 -2
- package/package.json +8 -49
package/README.md
CHANGED
|
@@ -25,3 +25,15 @@ Please read the [Contributing Guide](https://github.com/web-infra-dev/rsbuild/bl
|
|
|
25
25
|
## License
|
|
26
26
|
|
|
27
27
|
Rsbuild is [MIT licensed](https://github.com/web-infra-dev/rsbuild/blob/main/LICENSE).
|
|
28
|
+
|
|
29
|
+
## OpenHarmony port
|
|
30
|
+
|
|
31
|
+
`@ohos-ports` distribution of `@rsbuild/core@2.2.13`. Identical JS content;
|
|
32
|
+
the `@rspack/core` dependency is aliased to `@ohos-ports/rspack-core`
|
|
33
|
+
(`"@rspack/core": "npm:@ohos-ports/rspack-core@2.2.9-beta.0"`), which uses
|
|
34
|
+
`@ohos-ports/rspack-binding` and the OpenHarmony arm64 native binary slot
|
|
35
|
+
`@ohos-ports/rspack-binding-openharmony-arm64`.
|
|
36
|
+
|
|
37
|
+
Install chain: `@ohos-ports/rsbuild-core` → `@rspack/core` (alias) →
|
|
38
|
+
`@ohos-ports/rspack-core` → `@ohos-ports/rspack-binding` →
|
|
39
|
+
`@ohos-ports/rspack-binding-openharmony-arm64` (rspack.openharmony-arm64.node).
|
package/bin/rsbuild.js
CHANGED
|
@@ -4,7 +4,9 @@ import nodeModule from 'node:module';
|
|
|
4
4
|
// enable on-disk code caching of all modules loaded by Node.js
|
|
5
5
|
// requires Nodejs >= 22.8.0
|
|
6
6
|
const { enableCompileCache } = nodeModule;
|
|
7
|
-
|
|
7
|
+
const isCI = Boolean(process.env.CI) && process.env.CI !== 'false';
|
|
8
|
+
// Skip CI, where builds typically run once and cannot reuse the cache.
|
|
9
|
+
if (enableCompileCache && !isCI) {
|
|
8
10
|
try {
|
|
9
11
|
enableCompileCache();
|
|
10
12
|
} catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@rstackjs/load-config","version":"1.0.
|
|
1
|
+
{"name":"@rstackjs/load-config","version":"1.0.1","license":"MIT","types":"index.d.ts","type":"module"}
|