forked from trent_larson/crowd-funder-for-time-pwa
- Change from dynamic to static imports for @timesafari/daily-notification-plugin - Remove plugin from external dependencies in vite.config.capacitor.mts to ensure proper bundling - Add debug logging to DailyNotificationSection for troubleshooting - Update package-lock.json with latest dependencies
21 lines
610 B
TypeScript
21 lines
610 B
TypeScript
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,
|
|
}
|
|
}
|
|
}
|
|
};
|
|
});
|