Skip to content

Commit b8e026f

Browse files
committed
Add rolldown-vite support
1 parent 8d68d4f commit b8e026f

File tree

4 files changed

+247
-112
lines changed

4 files changed

+247
-112
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ jobs:
2222
- run: pnpm build:shims
2323
- run: pnpm playwright install --with-deps
2424
- run: pnpm -r test:e2e
25+
test-e2e-rolldown-vite:
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: ./.github/actions/install-dependencies
30+
- run: pnpm build:core
31+
- run: pnpm build:shims
32+
- run: pnpm playwright install --with-deps
33+
- name: update overrides to use rolldown-vite and re-install
34+
run: |
35+
jq '.pnpm.overrides.vite = "npm:rolldown-vite@^7.0.1"' package.json > package.tmp.json
36+
mv package.tmp.json package.json
37+
pnpm i
38+
- run: pnpm -r test:e2e
2539
test-unit:
2640
runs-on: ubuntu-latest
2741
steps:

examples/vanilla/test/e2e/main.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('logs the correct values', async ({ page }) => {
2525

2626
if (isBuild) {
2727
expect(logs).toEqual([
28-
'class Symbol {\n }',
28+
expect.stringMatching(/^class (Symbol )?\{\s*\}$/),
2929
'{Volume: , vol: Volume, createFsFromVolume: , fs: Object, memfs: }',
3030
'function fetch() { [native code] }',
3131
'/',
@@ -44,8 +44,8 @@ test('logs the correct values', async ({ page }) => {
4444
expect(logs).toEqual([
4545
'[vite] connecting...',
4646
'[vite] connected.',
47-
'class Symbol {\n}',
48-
'{Volume: , vol: _Volume, createFsFromVolume: , fs: Object, memfs: }',
47+
expect.stringMatching(/^class Symbol \{\s*\}$/),
48+
expect.stringMatching(/^\{Volume: , vol: _?Volume, createFsFromVolume: , fs: Object, memfs: \}$/),
4949
'function fetch() { [native code] }',
5050
'/',
5151
'{nextTick: , title: browser, browser: true, env: Object, argv: Array(0)}',

0 commit comments

Comments
 (0)