Setup typescript rollup
This commit is contained in:
parent
6b3c4ec651
commit
3b757476e0
|
@ -32,6 +32,7 @@
|
|||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^17.1.0",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-typescript": "8.3.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"doctrine": "^3.0.0",
|
||||
"jest": "29.7.0",
|
||||
|
|
|
@ -4,6 +4,7 @@ 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"
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH
|
||||
|
@ -17,6 +18,7 @@ export default [
|
|||
file: "./dist/bundle.cjs",
|
||||
},
|
||||
plugins: [
|
||||
typescript({ tsconfig: "tsconfig.build.json" }),
|
||||
resolve({
|
||||
preferBuiltins: true,
|
||||
browser: true,
|
||||
|
|
Loading…
Reference in New Issue