fix: Build including NextJS

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
2022-09-27 15:56:51 +02:00
parent b43329caa1
commit fec1c9e7e4
3 changed files with 5 additions and 4 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', ...external],
external: ['react', 'react-dom', /next/gu, ...external],
output: {
// Provide global variables to use in the UMD build
// for externalized deps