🧪 Fail the build when the client bundle carries the server runtime
The postbuild step now recreates the tracked build placeholder and checks that the client bundle holds Svelte's browser runtime and the service worker registration, so a wrong export condition cannot ship unnoticed.
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"postbuild": "node -e \"require('fs').mkdirSync('build',{recursive:true});require('fs').writeFileSync('build/.gitkeep','')\"",
|
||||
"postbuild": "node scripts/postbuild.mjs",
|
||||
"preview": "vite preview",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
|
||||
Reference in New Issue
Block a user