add "type": "module" to solid spa templates
Closed this issue · 0 comments
huseeiin commented
when you uncomment solid-devtools,
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import devtools from "solid-devtools/vite";
export default defineConfig({
plugins: [
/*
Uncomment the following line to enable solid-devtools.
For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
*/
devtools(),
solidPlugin(),
],
server: {
port: 3000,
},
build: {
target: "esnext",
},
});
vite is gonna crash because it cannot resolve solid-devtools without "type": "module"