Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theetrain/7320-svelte-server-debugging
Experimentation with SvelteKit server-side debugging.
https://github.com/theetrain/7320-svelte-server-debugging
Last synced: 11 days ago
JSON representation
Experimentation with SvelteKit server-side debugging.
- Host: GitHub
- URL: https://github.com/theetrain/7320-svelte-server-debugging
- Owner: theetrain
- Created: 2024-07-21T19:46:53.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-21T19:50:04.000Z (4 months ago)
- Last Synced: 2024-07-21T21:28:29.443Z (4 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This demonstration seeks to resolve .
Things to note:
1. `vite.config.js` features `build.sourcemap = true`
2. Added some flags for Node.js in `package.json````json
{
"scripts": {
"dev": "NODE_OPTIONS=--enable-source-maps vite dev",
"build": "vite build",
"preview": "NODE_OPTIONS=--enable-source-maps vite preview",
}
}
```Despite the above, I could not set up breakpoints for server-side source maps in
Chrome Dev tools. The source maps appears, but they are apparently not linked to
Node.js when the dev or preview server launches.