sourcemaps
This commit is contained in:
parent
8f68d2c9c3
commit
714d162c63
|
|
@ -154,7 +154,7 @@ export async function transpile(path: string): Promise<string> {
|
|||
entrypoints: [path],
|
||||
format: 'esm',
|
||||
minify: false,
|
||||
sourcemap: 'none',
|
||||
sourcemap: process.env.NODE_ENV === 'production' ? 'none' : 'inline',
|
||||
})
|
||||
|
||||
if (!result.outputs[0]) throw new Error(`Failed to build ${path}`)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user