don't cache transpiled js in dev mode
This commit is contained in:
parent
68406a0a80
commit
88eab4ece2
|
|
@ -146,7 +146,9 @@ export async function transpile(path: string): Promise<string> {
|
|||
const { mtime } = await stat(path)
|
||||
const key = `${path}?${mtime}`
|
||||
|
||||
let cached = transpileCache[key]
|
||||
// no caching in dev mode
|
||||
let cached = process.env.NODE_ENV === 'production' ? transpileCache[key] : undefined
|
||||
|
||||
if (!cached) {
|
||||
const result = await Bun.build({
|
||||
entrypoints: [path],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user