Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix `Dynamic module import is disabled` error

Abdullah Atta2b74e2afb298
diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts
index b7580d74f..9af38c09b 100644
--- a/apps/web/vite.config.ts
+++ b/apps/web/vite.config.ts
@@ -81,7 +81,12 @@ export default defineConfig({
port: 3000
},
worker: {
- format: "es"
+ format: "es",
+ rollupOptions: {
+ output: {
+ inlineDynamicImports: true
+ }
+ }
},
css: {
postcss: {