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

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