Skip to content

Commit

Permalink
chore(dist): include sourcemaps and stop bundling react jsx-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Sep 2, 2024
1 parent 8a3c1b3 commit bd69a7c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@ export default defineConfig({
}),
],
build: {
sourcemap: true,
// minify: false,
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__dirname, "src/index.ts"),
formats: ["es"],
fileName: "index",
},
rollupOptions: {
external: [...Object.keys(pkg.dependencies), "/node_modules/"],
external: [
"react",
"react-dom",
"react/jsx-runtime",
"react/jsx-dev-runtime",
...Object.keys(pkg.dependencies),
"/node_modules/",
],
},
},
resolve: {
Expand Down

0 comments on commit bd69a7c

Please sign in to comment.