Fix build
This commit is contained in:
parent
bbe5f0041d
commit
af3c4285f0
|
@ -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,
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue