Skip to content

Commit

Permalink
chore: add workaround and make environment-react-ssr playground pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 21, 2024
1 parent c78b553 commit 840de9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions playground/environment-react-ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export default defineConfig((env) => ({
input: {
index: '/src/entry-server',
},
output: {
// NOTE: needed for now: https://github.com/rolldown/rolldown/issues/2685
banner:
"import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);",
},
},
},
},
Expand Down
1 change: 0 additions & 1 deletion vitest.config.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineConfig({
'./playground/legacy/**/*.spec.[tj]s', // system format
...(isBuild
? [
'./playground/environment-react-ssr/**/*.spec.[tj]s', // needs investigation
'./playground/external/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/2041
'./playground/object-hooks/**/*.spec.[tj]s', // object hook sequential
'./playground/optimize-deps/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/2031
Expand Down

0 comments on commit 840de9b

Please sign in to comment.