Skip to content

Commit

Permalink
Feat: upgrade pack-binding for new features (#6832)
Browse files Browse the repository at this point in the history
* feat: upgrade icepack for new features

* chore: changeset
  • Loading branch information
ClarkXia authored Mar 19, 2024
1 parent d0a748f commit 8275f13
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 112 deletions.
7 changes: 7 additions & 0 deletions .changeset/good-pans-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@ice/rspack-config': patch
'@ice/bundles': patch
'@ice/app': patch
---

feat: upgrade icepack for new features
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"@rspack/[email protected].4": "patches/@[email protected].4.patch",
"@rspack/[email protected].7": "patches/@[email protected].7.patch",
"[email protected]": "patches/[email protected]"
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/bundles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"zod": "^3.22.3",
"zod-validation-error": "1.2.0",
"terminal-link": "^2.1.1",
"@ice/pack-binding": "0.0.11",
"@ice/pack-binding": "0.0.12",
"mime-types": "2.1.35"
},
"devDependencies": {
"@rspack/plugin-react-refresh": "0.5.4",
"@rspack/dev-server": "0.5.4",
"@rspack/core": "0.5.4",
"@rspack/plugin-react-refresh": "0.5.7",
"@rspack/dev-server": "0.5.7",
"@rspack/core": "0.5.7",
"@types/less": "^3.0.3",
"@types/lodash": "^4.14.181",
"@types/webpack-bundle-analyzer": "^4.4.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/ice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"unplugin": "^1.6.0",
"webpack": "^5.88.0",
"webpack-dev-server": "4.15.0",
"@rspack/core": "0.5.4",
"@rspack/dev-server": "0.5.4"
"@rspack/core": "0.5.7",
"@rspack/dev-server": "0.5.7"
},
"peerDependencies": {
"react": ">=18.0.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/ice/src/bundler/rspack/formatStats.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import chalk from 'chalk';
import type { Stats, MultiStats } from '@rspack/core';
import type { StatsCompilation } from 'webpack';
import formatWebpackMessages from '../../utils/formatWebpackMessages.js';

function formatStats(stats: Stats | MultiStats, showWarnings = true) {
const statsData = stats.toJson({
preset: 'errors-warnings',
});
// @ts-ignore
}) as StatsCompilation;

const { errors, warnings } = formatWebpackMessages(statsData);

if (errors.length) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ice/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"moduleDetection": "legacy"
},
"include": ["src"],
"exclude": ["src/shims/*"]
"exclude": ["src/utils/*"]
}
2 changes: 1 addition & 1 deletion packages/rspack-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@ice/shared-config": "1.2.5"
},
"devDependencies": {
"@rspack/core": "0.5.4"
"@rspack/core": "0.5.7"
},
"scripts": {
"watch": "tsc -w --sourceMap",
Expand Down
11 changes: 5 additions & 6 deletions patches/@[email protected] → patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/dist/config/adapter.js b/dist/config/adapter.js
index 49122b3e9f4f0ac85b4075a98f693986b4333051..c3436a090fdbac00e555b2e308974f8d3f9c2426 100644
index 4eebbcf79cba29acbc0a36d565acc1c08eaf790b..1d87c9be33f69b8dda1436d8e3b970ce0b571112 100644
--- a/dist/config/adapter.js
+++ b/dist/config/adapter.js
@@ -15,6 +15,7 @@ const getRawOptions = (options, compiler) => {
Expand All @@ -11,7 +11,7 @@ index 49122b3e9f4f0ac85b4075a98f693986b4333051..c3436a090fdbac00e555b2e308974f8d
target: getRawTarget(options.target),
context: options.context,
diff --git a/dist/config/defaults.js b/dist/config/defaults.js
index aeb7b74dd8473fa049002cf710ae860577d6d2e2..0dd4fd09fd08482b5a2c5a82cad61ab70e2b2d68 100644
index 1f9f61ff680b6db026c43eb95fe2d78c5f5d8195..56ce90247fd920717d42bc16864e6025fe6dca66 100644
--- a/dist/config/defaults.js
+++ b/dist/config/defaults.js
@@ -53,6 +53,11 @@ const applyRspackOptionsDefaults = (options) => {
Expand Down Expand Up @@ -41,7 +41,7 @@ index aeb7b74dd8473fa049002cf710ae860577d6d2e2..0dd4fd09fd08482b5a2c5a82cad61ab7
D(experiments, "lazyCompilation", false);
D(experiments, "asyncWebAssembly", false);
diff --git a/dist/config/normalization.js b/dist/config/normalization.js
index 72167c504bd43f606481ccd1de0bdcb9eae71d9f..b16f9f3bbf1c45e00a9ca31684cefec55198683b 100644
index 696eddf849f8a2f2c66237cb37db767f4dfe20ca..7e89b6091471de8287ce0785042676873141cfbe 100644
--- a/dist/config/normalization.js
+++ b/dist/config/normalization.js
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
Expand All @@ -53,15 +53,14 @@ index 72167c504bd43f606481ccd1de0bdcb9eae71d9f..b16f9f3bbf1c45e00a9ca31684cefec5
? config.ignoreWarnings.map(ignore => {
if (typeof ignore === "function") {
diff --git a/dist/config/zod.js b/dist/config/zod.js
index 1c4c2cf4d02c562b8fc965c103de0eaf8e246b6a..7fa7e42a02180081096d77f64d7df0cc7d61b4d1 100644
index a81260f08e4e7de64ff3c1f8769a658db4c73883..df3184bad831922f64f3c41b64bce08fcdf5b3cd 100644
--- a/dist/config/zod.js
+++ b/dist/config/zod.js
@@ -766,6 +766,7 @@ exports.rspackOptions = zod_1.z.strictObject({
@@ -775,5 +775,6 @@ exports.rspackOptions = zod_1.z.strictObject({
builtins: builtins.optional(),
module: moduleOptions.optional(),
profile: profile.optional(),
- bail: bail.optional()
+ bail: bail.optional(),
+ features: zod_1.z.custom().optional(),
});
//# sourceMappingURL=zod.js.map
Loading

0 comments on commit 8275f13

Please sign in to comment.