2
0

🚑 Fix embed web.js file mentioning "process"

This commit is contained in:
Baptiste Arnaud
2024-06-26 12:22:57 +02:00
parent dd191e3525
commit b08e374e3e
5 changed files with 27 additions and 5 deletions

View File

@ -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"
}
}

View File

@ -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,
}),
],
}