Skip to content

Commit 840de9b

Browse files
committed
chore: add workaround and make environment-react-ssr playground pass
1 parent c78b553 commit 840de9b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

playground/environment-react-ssr/vite.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export default defineConfig((env) => ({
4747
input: {
4848
index: '/src/entry-server',
4949
},
50+
output: {
51+
// NOTE: needed for now: https://github.com/rolldown/rolldown/issues/2685
52+
banner:
53+
"import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);",
54+
},
5055
},
5156
},
5257
},

vitest.config.e2e.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export default defineConfig({
1717
'./playground/legacy/**/*.spec.[tj]s', // system format
1818
...(isBuild
1919
? [
20-
'./playground/environment-react-ssr/**/*.spec.[tj]s', // needs investigation
2120
'./playground/external/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/2041
2221
'./playground/object-hooks/**/*.spec.[tj]s', // object hook sequential
2322
'./playground/optimize-deps/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/2031

0 commit comments

Comments
 (0)