Merge branch 'master' into frontend-core-ts-2
This commit is contained in:
commit
31a8d85d19
|
@ -31,15 +31,13 @@
|
|||
"@rollup/plugin-commonjs": "^17.1.0",
|
||||
"@rollup/plugin-inject": "^5.0.5",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "8.3.0",
|
||||
"doctrine": "^3.0.0",
|
||||
"jest": "29.7.0",
|
||||
"marked": "^4.0.10",
|
||||
"rollup": "^2.36.2",
|
||||
"rollup-plugin-inject-process-env": "^1.3.1",
|
||||
"rollup-plugin-node-builtins": "^2.1.2",
|
||||
"rollup-plugin-node-globals": "^1.4.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-polyfill-node": "^0.13.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"ts-jest": "29.1.1",
|
||||
"typescript": "5.7.2"
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
import commonjs from "@rollup/plugin-commonjs"
|
||||
import resolve from "rollup-plugin-node-resolve"
|
||||
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"
|
||||
import typescript from "@rollup/plugin-typescript"
|
||||
import injectProcessEnv from "rollup-plugin-inject-process-env"
|
||||
import polyfillNode from "rollup-plugin-polyfill-node"
|
||||
import inject from "@rollup/plugin-inject"
|
||||
import { terser } from "rollup-plugin-terser"
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH
|
||||
|
||||
|
@ -27,18 +25,14 @@ const config = (input, outputFile, format) => ({
|
|||
typescript({
|
||||
moduleResolution: "node",
|
||||
}),
|
||||
polyfillNode(),
|
||||
resolve({
|
||||
preferBuiltins: true,
|
||||
browser: true,
|
||||
}),
|
||||
commonjs(),
|
||||
globals(),
|
||||
inject({ Buffer: ["buffer", "Buffer"] }),
|
||||
builtins(),
|
||||
json(),
|
||||
injectProcessEnv({
|
||||
NO_JS: process.env.NO_JS,
|
||||
}),
|
||||
inject({ Buffer: ["buffer", "Buffer"] }),
|
||||
production && terser(),
|
||||
],
|
||||
})
|
||||
|
@ -46,5 +40,4 @@ const config = (input, outputFile, format) => ({
|
|||
export default [
|
||||
config("src/index.ts", "./dist/bundle.cjs", "cjs"),
|
||||
config("src/index.ts", "./dist/bundle.mjs", "esm"),
|
||||
config("src/iife.ts", "./dist/iife.mjs", "esm"),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue