Skip to content

Commit

Permalink
fix: bump rspack to fix barrel exports (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
xc2 authored Nov 8, 2024
1 parent 314e54e commit 7d7265b
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 48 deletions.
4 changes: 2 additions & 2 deletions e2e/cjs.test.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { expect, test } = require("bun:test");
test("should work with cjs", () => {
const a = require("../dist/label");
expect(a.parse).toBeTruthy();
const a = require("../dist/label/exports.cjs");
expect(a).toMatchObject({ parse: expect.any(Function) });
});
2 changes: 1 addition & 1 deletion e2e/esm.test.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "bun:test";

test("should work with mjs", async () => {
const a = import("../dist/label").then((r) => r.default || r);
const a = import("../dist/label/exports.mjs").then((r) => r.default || r);
await expect(a).resolves.toMatchObject({ parse: expect.any(Function) });
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"pnpm": {
"patchedDependencies": {
"@rslib/core": "patches/@rslib__core.patch"
},
"overrides": {
"@rspack/core@1.0.14": "1.1.0"
}
}
}
93 changes: 48 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d7265b

Please sign in to comment.