Fix build

This commit is contained in:
Adria Navarro 2024-02-22 00:24:57 +01:00
parent bbe5f0041d
commit af3c4285f0
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import commonjs from "@rollup/plugin-commonjs"
import resolve from "rollup-plugin-node-resolve"
import json from "@rollup/plugin-json"
import { terser } from "rollup-plugin-terser"
import builtins from "rollup-plugin-node-builtins"
import globals from "rollup-plugin-node-globals"
@ -16,7 +17,7 @@ const config = (format, outputFile) => ({
file: outputFile,
},
plugins: [
typescript({ tsconfig: "tsconfig.json" }),
typescript({ tsconfig: "tsconfig.json", resolveJsonModule: false }),
resolve({
preferBuiltins: true,
browser: true,
@ -24,6 +25,7 @@ const config = (format, outputFile) => ({
commonjs(),
globals(),
builtins(),
json(),
injectProcessEnv({
NO_JS: process.env.NO_JS,
}),