Skip to content

Commit 8e41b13

Browse files
committed
fix: exclude counterpart from build
1 parent 1983d06 commit 8e41b13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/shared-components/vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ export default defineConfig({
2626
rollupOptions: {
2727
// make sure to externalize deps that shouldn't be bundled
2828
// into your library
29-
external: ["react", "react-dom"],
29+
external: ["react", "react-dom", "counterpart"],
3030
output: {
3131
// Provide global variables to use in the UMD build
3232
// for externalized deps
3333
globals: {
3434
"react": "react",
3535
"react-dom": "ReactDom",
36+
"counterpart": "counterpart",
3637
},
3738
},
3839
},

0 commit comments

Comments
 (0)