✨ Add Next.js embed library
This commit is contained in:
@ -3,6 +3,7 @@ import terser from '@rollup/plugin-terser'
|
||||
import { babel } from '@rollup/plugin-babel'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
import { typescriptPaths } from 'rollup-plugin-typescript-paths'
|
||||
import alias from '@rollup/plugin-alias'
|
||||
|
||||
const extensions = ['.ts', '.tsx']
|
||||
|
||||
@ -12,8 +13,11 @@ const indexConfig = {
|
||||
file: './dist/index.js',
|
||||
format: 'es',
|
||||
},
|
||||
external: ['react', 'react/jsx-runtime', '@typebot.io/js'],
|
||||
external: ['react', 'react/jsx-runtime'],
|
||||
plugins: [
|
||||
alias({
|
||||
entries: [{ find: '@typebot.io/js', replacement: '../../js' }],
|
||||
}),
|
||||
resolve({ extensions }),
|
||||
babel({
|
||||
babelHelpers: 'bundled',
|
||||
|
Reference in New Issue
Block a user