Skip to content

Commit 33c5a57

Browse files
xierenyuanCopilot
andauthored
feat: upgrade rspack core to 1.4.8 and update trace format (#28)
* feat: upgrade rspack core to 1.4.8 and update trace format Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9317464 commit 33c5a57

File tree

4 files changed

+93
-59
lines changed

4 files changed

+93
-59
lines changed

packages/bundler-shared-config/src/plugins/EsbuildMinifyFix.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ export class EsbuildMinifyFix {
139139
output.source = new SourceMapSource(
140140
newCode,
141141
name,
142+
// @ts-expect-error: The `mergedMap` type is incompatible with the expected type for `SourceMapSource`.
143+
// This is due to a known issue with the `remapping` library or rspack's type definitions.
142144
mergedMap,
143145
originCode,
144146
map,

packages/bundler-shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
},
131131
"dependencies": {
132132
"@kmijs/shared": "workspace:*",
133-
"@rspack/core": "1.3.10",
133+
"@rspack/core": "1.4.8",
134134
"@swc/helpers": "0.5.15",
135135
"es5-imcompatible-versions": "^0.1.78",
136136
"esbuild": "0.17.19",

packages/preset-bundler/src/features/rspack/rspackProfile.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ export default (api: IApi) => {
5858
fsExtra.mkdirpSync(profileDir)
5959

6060
if (enableProfileTrace) {
61-
rspack.experiments.globalTrace.register('trace', 'chrome', traceFilePath)
61+
rspack.experiments.globalTrace.register(
62+
'trace',
63+
'perfetto',
64+
traceFilePath,
65+
)
6266
}
6367

6468
if (enableCPUProfile) {

pnpm-lock.yaml

Lines changed: 85 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)