test-stacktrace-runtime.js — vite Source File
Architecture documentation for test-stacktrace-runtime.js, a javascript file in the vite codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b32a4e1b_3db5_efe5_55b5_c1c117854bbd["test-stacktrace-runtime.js"] 6feed3e8_55b8_cce7_b5ef_e40b872585f7["node:url"] b32a4e1b_3db5_efe5_55b5_c1c117854bbd --> 6feed3e8_55b8_cce7_b5ef_e40b872585f7 ff3250c5_6ca5_941f_276f_6e9efc95f1c2["node:assert"] b32a4e1b_3db5_efe5_55b5_c1c117854bbd --> ff3250c5_6ca5_941f_276f_6e9efc95f1c2 54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"] b32a4e1b_3db5_efe5_55b5_c1c117854bbd --> 54c37fea_4fe7_2693_71cb_1276b77f55f9 style b32a4e1b_3db5_efe5_55b5_c1c117854bbd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { fileURLToPath } from 'node:url'
import assert from 'node:assert'
import { createServer, createServerModuleRunner } from 'vite'
// same test case as packages/vite/src/node/ssr/runtime/__tests__/server-source-maps.spec.ts
// implemented for e2e to catch build specific behavior
const server = await createServer({
configFile: false,
root: fileURLToPath(new URL('.', import.meta.url)),
server: {
middlewareMode: true,
ws: false,
},
})
const runner = await createServerModuleRunner(server.environments.ssr, {
sourcemapInterceptor: 'prepareStackTrace',
})
const mod = await runner.import('/src/has-error-deep.ts')
let error
try {
mod.main()
} catch (e) {
error = e
} finally {
await server.close()
}
assert.match(error?.stack, /has-error-deep.ts:6:3/)
Dependencies
- node:assert
- node:url
- vite
Source
Frequently Asked Questions
What does test-stacktrace-runtime.js do?
test-stacktrace-runtime.js is a source file in the vite codebase, written in javascript.
What does test-stacktrace-runtime.js depend on?
test-stacktrace-runtime.js imports 3 module(s): node:assert, node:url, vite.
Where is test-stacktrace-runtime.js in the architecture?
test-stacktrace-runtime.js is located at playground/ssr-html/test-stacktrace-runtime.js (directory: playground/ssr-html).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free