🚑 Fix embed web.js file mentioning "process"
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/js",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"description": "Javascript library to display typebots on your website",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
@ -47,6 +47,7 @@
|
||||
"rollup-plugin-postcss": "4.0.2",
|
||||
"rollup-plugin-typescript-paths": "1.4.0",
|
||||
"tailwindcss": "3.3.3",
|
||||
"typescript": "5.4.5"
|
||||
"typescript": "5.4.5",
|
||||
"@rollup/plugin-replace": "5.0.7"
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import autoprefixer from 'autoprefixer'
|
||||
import tailwindcss from 'tailwindcss'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
import { typescriptPaths } from 'rollup-plugin-typescript-paths'
|
||||
import replace from '@rollup/plugin-replace'
|
||||
import fs from 'fs'
|
||||
|
||||
const extensions = ['.ts', '.tsx']
|
||||
@ -42,6 +43,10 @@ const indexConfig = {
|
||||
terser({
|
||||
format: { preamble },
|
||||
}),
|
||||
replace({
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
preventAssignment: true,
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user