2
0

🐛 Fix nextjs package broken dynamic import

This commit is contained in:
Baptiste Arnaud
2024-07-15 16:06:12 +02:00
parent 8e15472e82
commit 2a5fb14726
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.3.5",
"version": "0.3.6",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.3.5",
"version": "0.3.6",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -17,7 +17,7 @@ const indexConfig = {
dir: './dist',
format: 'es',
},
external: ['next/dynamic', 'react', 'react/jsx-runtime'],
external: ['next/dynamic.js', 'react', 'react/jsx-runtime'],
watch: {
clearScreen: false,
},

View File

@ -3,7 +3,7 @@ import type {
PopupProps,
BubbleProps,
} from '@typebot.io/js/dist/index'
import dynamic from 'next/dynamic'
import dynamic from 'next/dynamic.js'
export const Standard: React.ComponentType<
BotProps & {

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.3.5",
"version": "0.3.6",
"description": "Convenient library to display typebots on your React app",
"main": "dist/index.js",
"types": "dist/index.d.ts",