diff vite.config.ts @ 137:a8939c717015

still trying to get build right, but there are other update bugs too
author drewp@bigasterisk.com
date Sat, 06 May 2023 15:34:40 -0700
parents a6490559ce73
children 2ad4784c0d6c
line wrap: on
line diff
--- a/vite.config.ts	Sat May 06 14:20:33 2023 -0700
+++ b/vite.config.ts	Sat May 06 15:34:40 2023 -0700
@@ -3,6 +3,7 @@
 import rollupResolve from "@rollup/plugin-node-resolve";
 import rollupCommonjs from "@rollup/plugin-commonjs";
 
+import rollupAlias from "@rollup/plugin-alias";
 const config: UserConfigExport = {
   server: {
     host: "0.0.0.0",
@@ -25,8 +26,9 @@
         rollupResolve({
           browser: true,
           preferBuiltins: false,
+          
         }),
-        rollupCommonjs(),
+        // rollupCommonjs(),
         // terser({
         //   mangle: false,
         //   compress: false,
@@ -34,16 +36,19 @@
         //     semicolons: false,
         //   },
         // }),
+        // rollupAlias({
+        //   entries: [{ find: "promises", replacement: "__my_promises__" }],
+        // }),
       ],
     },
     minify: false,
   },
-  resolve: {
-    alias: [{ find: "rdf-canonize-native", replacement: "" }],
-  },
-  define: {
-    global: {},
-  },
+  // resolve: {
+  //   alias: [{ find: "rdf-canonize-native", replacement: "" }],
+  // },
+  // define: {
+  //   global: {},
+  // },
 };
 
 export default defineConfig(({ command, mode }) => {