You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
610 B
21 lines
610 B
import { defineConfig } from "vite";
|
|
import { createBuildConfig } from "./vite.config.common.mts";
|
|
|
|
export default defineConfig(async () => {
|
|
const baseConfig = await createBuildConfig('capacitor');
|
|
|
|
return {
|
|
...baseConfig,
|
|
build: {
|
|
...baseConfig.build,
|
|
rollupOptions: {
|
|
...baseConfig.build?.rollupOptions,
|
|
// Note: @timesafari/daily-notification-plugin is NOT externalized
|
|
// because it needs to be bundled for dynamic imports to work in Capacitor WebView
|
|
output: {
|
|
...baseConfig.build?.rollupOptions?.output,
|
|
}
|
|
}
|
|
}
|
|
};
|
|
});
|