Skip to content

Commit

Permalink
Merge pull request #15151 from Budibase/chore/update-outdated-rollup-…
Browse files Browse the repository at this point in the history
…deps

Update outdated rollup deps
  • Loading branch information
adrinr authored Dec 11, 2024
2 parents 50323a4 + 4f9a345 commit 24a325a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 624 deletions.
6 changes: 2 additions & 4 deletions packages/string-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
17 changes: 5 additions & 12 deletions packages/string-templates/rollup.config.js
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -27,24 +25,19 @@ 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(),
],
})

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

0 comments on commit 24a325a

Please sign in to comment.