mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 09:15:11 -05:00
build(ui): set package mode target to ES2015
This commit is contained in:
committed by
Kent Keirsey
parent
56f0845552
commit
0060cae17c
@@ -24,6 +24,15 @@ export default defineConfig(({ mode }) => {
|
||||
cssInjectedByJsPlugin(),
|
||||
],
|
||||
build: {
|
||||
/**
|
||||
* zone.js (via faro) requires max ES2015 to prevent spamming unhandled promise rejections.
|
||||
*
|
||||
* See:
|
||||
* - https://github.com/grafana/faro-web-sdk/issues/566
|
||||
* - https://github.com/angular/angular/issues/51328
|
||||
* - https://github.com/open-telemetry/opentelemetry-js/issues/3030
|
||||
*/
|
||||
target: 'ES2015',
|
||||
cssCodeSplit: true,
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, './src/index.ts'),
|
||||
|
||||
Reference in New Issue
Block a user