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", "name": "@typebot.io/js",
"version": "0.3.1", "version": "0.3.2",
"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",
@ -47,6 +47,7 @@
"rollup-plugin-postcss": "4.0.2", "rollup-plugin-postcss": "4.0.2",
"rollup-plugin-typescript-paths": "1.4.0", "rollup-plugin-typescript-paths": "1.4.0",
"tailwindcss": "3.3.3", "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 tailwindcss from 'tailwindcss'
import typescript from '@rollup/plugin-typescript' import typescript from '@rollup/plugin-typescript'
import { typescriptPaths } from 'rollup-plugin-typescript-paths' import { typescriptPaths } from 'rollup-plugin-typescript-paths'
import replace from '@rollup/plugin-replace'
import fs from 'fs' import fs from 'fs'
const extensions = ['.ts', '.tsx'] const extensions = ['.ts', '.tsx']
@ -42,6 +43,10 @@ const indexConfig = {
terser({ terser({
format: { preamble }, format: { preamble },
}), }),
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
preventAssignment: true,
}),
], ],
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/nextjs", "name": "@typebot.io/nextjs",
"version": "0.3.1", "version": "0.3.2",
"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",

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/react", "name": "@typebot.io/react",
"version": "0.3.1", "version": "0.3.2",
"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",

18
pnpm-lock.yaml generated
View File

@ -1035,6 +1035,9 @@ importers:
'@rollup/plugin-node-resolve': '@rollup/plugin-node-resolve':
specifier: 15.1.0 specifier: 15.1.0
version: 15.1.0(rollup@3.26.2) version: 15.1.0(rollup@3.26.2)
'@rollup/plugin-replace':
specifier: 5.0.7
version: 5.0.7(rollup@3.26.2)
'@rollup/plugin-terser': '@rollup/plugin-terser':
specifier: 0.4.3 specifier: 0.4.3
version: 0.4.3(rollup@3.26.2) version: 0.4.3(rollup@3.26.2)
@ -8382,6 +8385,20 @@ packages:
rollup: 3.26.2 rollup: 3.26.2
dev: true dev: true
/@rollup/plugin-replace@5.0.7(rollup@3.26.2):
resolution: {integrity: sha512-PqxSfuorkHz/SPpyngLyg5GCEkOcee9M1bkxiVDr41Pd61mqP1PLOoDPbpl44SB2mQGKwV/In74gqQmGITOhEQ==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
dependencies:
'@rollup/pluginutils': 5.1.0(rollup@3.26.2)
magic-string: 0.30.8
rollup: 3.26.2
dev: true
/@rollup/plugin-terser@0.4.3(rollup@3.26.2): /@rollup/plugin-terser@0.4.3(rollup@3.26.2):
resolution: {integrity: sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==} resolution: {integrity: sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
@ -16909,7 +16926,6 @@ packages:
engines: {node: '>=12'} engines: {node: '>=12'}
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/sourcemap-codec': 1.4.15
dev: false
/make-dir@4.0.0: /make-dir@4.0.0:
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}