annotate demo/vite.config.ts @ 100:ad08e5e25fc9

revert jsonld a few years to avoid a vite/commonjs build issue the newer jsonld has this dep graph: jsonld 5.2.0 └─┬ rdf-canonize 3.0.0 └── setimmediate 1.0.5 and that setimmediate uses strict in a way that breaks the build, etc.
author drewp@bigasterisk.com
date Fri, 11 Feb 2022 22:57:23 -0800
parents 4d19a94906d2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
1 import { defineConfig } from "vite";
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
2
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
3 // https://vitejs.dev/config/
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
4 export default defineConfig({
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
5 base: "https://bigasterisk.com/reposyncDev/",
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
6 server: {
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
7 host: "0.0.0.0",
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
8 port: 8001,
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
9 hmr: { port: 443 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
10 fs: {
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
11 allow: ["src", "node_modules", "../build"],
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
12 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
13 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
14 build: {
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
15 lib: {
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
16 entry: "src/my-element.ts",
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
17 formats: ["es"],
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
18 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
19 rollupOptions: {
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
20 external: /^lit/,
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
21 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
22 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
23 resolve: {
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
24 alias: [{ find: "rdf-canonize-native", replacement: "notfound" }],
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
25 },
4d19a94906d2 redo demo/ with vitejs (so nice)
drewp@bigasterisk.com
parents:
diff changeset
26 });