fix: Build considering index.ts as an external deps

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2022-10-02 18:37:26 +02:00
parent 261f00805b
commit d8995ed9e0
Signed by: Florian Bouillon
GPG Key ID: BEEAF3722D0EBF64
2 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,6 @@
"@dzeio/object-util": "^1",
"typescript": "^4",
"lucide-react": "^0.88.0",
"production": "^0.0.2",
"vite": "^3"
}
}

View File

@ -17,7 +17,7 @@ export default defineConfig({
rollupOptions: {
// externalize deps that shouldn't be bundled
// into your library
external: ['react', 'react-dom', /next/gu, ...external],
external: ['react', 'react-dom', /^next/gu, ...external],
output: {
// Provide global variables to use in the UMD build
// for externalized deps