Skip to content

Commit

Permalink
chore(deps): update dependency rollup to v4 (#5196)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency rollup to v4

* Update plugins

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
  • Loading branch information
renovate[bot] and lukastaegert committed Oct 13, 2023
1 parent 4bcf4e1 commit e2f947f
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 21 deletions.
5 changes: 3 additions & 2 deletions build-plugins/replace-browser-modules.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import type { Plugin as RollupPlugin } from 'rollup';
import type { Plugin } from 'vite';

const resolve = (path: string) => fileURLToPath(new URL(`../${path}`, import.meta.url));
Expand Down Expand Up @@ -29,12 +30,12 @@ const wasmModulesMap: ModulesMap = [[resolve('native'), resolve('browser/src/was

const resolutions: ReadonlyMap<string, string> = new Map([...jsModulesMap, ...wasmModulesMap]);

export default function replaceBrowserModules(): Plugin {
export default function replaceBrowserModules(): Plugin & RollupPlugin {
return {
apply: 'serve',
enforce: 'pre',
name: 'replace-browser-modules',
resolveId(source, importer) {
resolveId(source: string, importer: string | undefined) {
if (importer && source[0] === '.') {
return resolutions.get(join(dirname(importer), source));
}
Expand Down
214 changes: 199 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "11.1.4",
"@rollup/plugin-typescript": "11.1.5",
"@rollup/pluginutils": "^5.0.5",
"@types/estree": "1.0.2",
"@types/mocha": "^10.0.2",
Expand Down Expand Up @@ -157,16 +157,16 @@
"is-reference": "^3.0.2",
"lint-staged": "^14.0.1",
"locate-character": "^3.0.0",
"magic-string": "^0.30.4",
"magic-string": "^0.30.5",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"pinia": "^2.1.6",
"prettier": "^3.0.3",
"pretty-bytes": "^6.1.1",
"pretty-ms": "^8.0.0",
"requirejs": "^2.3.6",
"rollup": "^3.29.4",
"rollup-plugin-license": "^3.1.0",
"rollup": "^4.0.2",
"rollup-plugin-license": "github:lukastaegert/rollup-plugin-license",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-thatworks": "^1.0.4",
"semver": "^7.5.4",
Expand Down

0 comments on commit e2f947f

Please sign in to comment.