🐛 Fix nextjs package broken dynamic import
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.3.5",
|
"version": "0.3.6",
|
||||||
"description": "Javascript library to display typebots on your website",
|
"description": "Javascript library to display typebots on your website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.3.5",
|
"version": "0.3.6",
|
||||||
"description": "Convenient library to display typebots on your Next.js website",
|
"description": "Convenient library to display typebots on your Next.js website",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -17,7 +17,7 @@ const indexConfig = {
|
|||||||
dir: './dist',
|
dir: './dist',
|
||||||
format: 'es',
|
format: 'es',
|
||||||
},
|
},
|
||||||
external: ['next/dynamic', 'react', 'react/jsx-runtime'],
|
external: ['next/dynamic.js', 'react', 'react/jsx-runtime'],
|
||||||
watch: {
|
watch: {
|
||||||
clearScreen: false,
|
clearScreen: false,
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@ import type {
|
|||||||
PopupProps,
|
PopupProps,
|
||||||
BubbleProps,
|
BubbleProps,
|
||||||
} from '@typebot.io/js/dist/index'
|
} from '@typebot.io/js/dist/index'
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic.js'
|
||||||
|
|
||||||
export const Standard: React.ComponentType<
|
export const Standard: React.ComponentType<
|
||||||
BotProps & {
|
BotProps & {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/react",
|
"name": "@typebot.io/react",
|
||||||
"version": "0.3.5",
|
"version": "0.3.6",
|
||||||
"description": "Convenient library to display typebots on your React app",
|
"description": "Convenient library to display typebots on your React app",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user