Skip to content

Commit 7d7265b

Browse files
authored
fix: bump rspack to fix barrel exports (#4)
1 parent 314e54e commit 7d7265b

File tree

4 files changed

+54
-48
lines changed

4 files changed

+54
-48
lines changed

e2e/cjs.test.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { expect, test } = require("bun:test");
22
test("should work with cjs", () => {
3-
const a = require("../dist/label");
4-
expect(a.parse).toBeTruthy();
3+
const a = require("../dist/label/exports.cjs");
4+
expect(a).toMatchObject({ parse: expect.any(Function) });
55
});

e2e/esm.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from "bun:test";
22

33
test("should work with mjs", async () => {
4-
const a = import("../dist/label").then((r) => r.default || r);
4+
const a = import("../dist/label/exports.mjs").then((r) => r.default || r);
55
await expect(a).resolves.toMatchObject({ parse: expect.any(Function) });
66
});

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"pnpm": {
2727
"patchedDependencies": {
2828
"@rslib/core": "patches/@rslib__core.patch"
29+
},
30+
"overrides": {
31+
"@rspack/[email protected]": "1.1.0"
2932
}
3033
}
3134
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)