fix(owner-tools): define process.env.NODE_ENV for browser bundle
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Fixes ReferenceError: process is not defined in production Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6ba25d0113
commit
5c34bef790
1 changed files with 6 additions and 1 deletions
|
|
@ -47,6 +47,11 @@ export default defineConfig(({ command }) => ({
|
||||||
fileName: () => 'owner-tools.js'
|
fileName: () => 'owner-tools.js'
|
||||||
},
|
},
|
||||||
outDir: '../../internal/tenant/assets/js',
|
outDir: '../../internal/tenant/assets/js',
|
||||||
emptyOutDir: false
|
emptyOutDir: false,
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
intro: 'const process = { env: { NODE_ENV: "production" } };'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue