fix: Build considering index.ts as an external deps

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

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