Skip to content

Commit

Permalink
fix: external solid-js/web and solid-js/store
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Oct 18, 2022
1 parent edb4ae2 commit bd82889
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/solid-contextmenu/package.json
Expand Up @@ -27,12 +27,12 @@
"files": [
"dist"
],
"main": "./dist/solid-contextmenu.umd.cjs",
"main": "./dist/solid-contextmenu.cjs",
"module": "./dist/solid-contextmenu.js",
"exports": {
".": {
"import": "./dist/solid-contextmenu.js",
"require": "./dist/solid-contextmenu.umd.cjs"
"require": "./dist/solid-contextmenu.cjs"
},
"./dist/style.css": "./dist/style.css"
},
Expand Down
15 changes: 8 additions & 7 deletions packages/solid-contextmenu/vite.config.ts
Expand Up @@ -14,17 +14,18 @@ export default defineConfig({
process.env.NODE_ENV === "production"
? {
entry: resolve(__dirname, "src/index.tsx"),
name: "SolidLib",
// name: "SolidLib",
fileName: "solid-contextmenu",
formats: ["es", "cjs"],
}
: undefined,
rollupOptions: {
external: ["solid-js"],
output: {
globals: {
"solid-js": "Solidjs",
},
},
external: ["solid-js", "solid-js/web", "solid-js/store"],
// output: {
// globals: {
// "solid-js": "Solidjs",
// },
// },
},
},
});

0 comments on commit bd82889

Please sign in to comment.