Skip to content

Commit 1bc0d18

Browse files
authored
chore: Remove rollup-plugin-sourcemaps2 (#573)
This plugin was mistakenly added by yours truly when we first configured Vite for the extension. Vite (_obviously_) has its own sourcemap feature; we don't need this.
1 parent 7dd602d commit 1bc0d18

5 files changed

Lines changed: 1 addition & 44 deletions

File tree

packages/extension/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@
8888
"playwright": "^1.51.1",
8989
"prettier": "^3.5.3",
9090
"rimraf": "^6.0.1",
91-
"rollup": "^4.39.0",
92-
"rollup-plugin-sourcemaps2": "^0.5.0",
9391
"typedoc": "^0.28.1",
9492
"typescript": "~5.8.2",
9593
"typescript-eslint": "^8.29.0",

packages/extension/vite.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import {
88
} from '@ocap/vite-plugins';
99
import react from '@vitejs/plugin-react';
1010
import path from 'path';
11-
import sourcemaps from 'rollup-plugin-sourcemaps2';
1211
import { defineConfig } from 'vite';
13-
import type { Plugin as VitePlugin } from 'vite';
1412
import { checker as viteChecker } from 'vite-plugin-checker';
1513
import { viteStaticCopy } from 'vite-plugin-static-copy';
1614
import type { Target } from 'vite-plugin-static-copy';
@@ -86,7 +84,6 @@ export default defineConfig(({ mode }) => {
8684
viteChecker({ typescript: { tsconfigPath: 'tsconfig.build.json' } }),
8785
// Import sourcemaps from our own libraries
8886
// For whatever reason, the types don't match, but it works
89-
isDev && (sourcemaps() as unknown as VitePlugin),
9087
// Open the extension in the browser when watching
9188
isWatching && extensionDev({ extensionPath: buildDir }),
9289
],

packages/kernel-browser-runtime/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
"eslint-plugin-promise": "^7.2.1",
105105
"prettier": "^3.5.3",
106106
"rimraf": "^6.0.1",
107-
"rollup-plugin-sourcemaps2": "^0.5.0",
108107
"typedoc": "^0.28.1",
109108
"typescript": "~5.8.2",
110109
"typescript-eslint": "^8.29.0",

packages/kernel-browser-runtime/vite.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import { jsTrustedPrelude } from '@ocap/vite-plugins';
55
import type { PreludeRecord } from '@ocap/vite-plugins';
66
import path from 'path';
7-
import sourcemaps from 'rollup-plugin-sourcemaps2';
87
import { defineConfig } from 'vite';
9-
import type { Plugin as VitePlugin } from 'vite';
108
import { checker as viteChecker } from 'vite-plugin-checker';
119
import { viteStaticCopy } from 'vite-plugin-static-copy';
1210
import type { Target } from 'vite-plugin-static-copy';
@@ -108,7 +106,6 @@ export default defineConfig(({ mode }) => {
108106
silent: isDev,
109107
}),
110108
viteChecker({ typescript: { tsconfigPath: 'tsconfig.build.json' } }),
111-
isDev && (sourcemaps() as unknown as VitePlugin),
112109
// For unknown reasons, Vite duplicates the WASM binary file of @sqlite.org/sqlite-wasm.
113110
// (It's probably related to the the file being conditionally imported in multiple places.)
114111
// To avoid bloating the bundle, we delete the duplicate files. Thankfully, these files are

yarn.lock

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,6 @@ __metadata:
20562056
nanoid: "npm:^5.1.5"
20572057
prettier: "npm:^3.5.3"
20582058
rimraf: "npm:^6.0.1"
2059-
rollup-plugin-sourcemaps2: "npm:^0.5.0"
20602059
ses: "npm:^1.13.0"
20612060
typedoc: "npm:^0.28.1"
20622061
typescript: "npm:~5.8.2"
@@ -3158,8 +3157,6 @@ __metadata:
31583157
react: "npm:^17.0.2"
31593158
react-dom: "npm:^17.0.2"
31603159
rimraf: "npm:^6.0.1"
3161-
rollup: "npm:^4.39.0"
3162-
rollup-plugin-sourcemaps2: "npm:^0.5.0"
31633160
ses: "npm:^1.13.0"
31643161
typedoc: "npm:^0.28.1"
31653162
typescript: "npm:~5.8.2"
@@ -3739,22 +3736,6 @@ __metadata:
37393736
languageName: node
37403737
linkType: hard
37413738

3742-
"@rollup/pluginutils@npm:5.1.4":
3743-
version: 5.1.4
3744-
resolution: "@rollup/pluginutils@npm:5.1.4"
3745-
dependencies:
3746-
"@types/estree": "npm:^1.0.0"
3747-
estree-walker: "npm:^2.0.2"
3748-
picomatch: "npm:^4.0.2"
3749-
peerDependencies:
3750-
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
3751-
peerDependenciesMeta:
3752-
rollup:
3753-
optional: true
3754-
checksum: 10/598f628988af25541a9a6c6ef154aaf350f8be3238884e500cc0e47138684071abe490563c953f9bda9e8b113ecb1f99c11abfb9dbaf4f72cdd62e257a673fa3
3755-
languageName: node
3756-
linkType: hard
3757-
37583739
"@rollup/pluginutils@npm:^5.1.4":
37593740
version: 5.2.0
37603741
resolution: "@rollup/pluginutils@npm:5.2.0"
@@ -12046,22 +12027,7 @@ __metadata:
1204612027
languageName: node
1204712028
linkType: hard
1204812029

12049-
"rollup-plugin-sourcemaps2@npm:^0.5.0":
12050-
version: 0.5.1
12051-
resolution: "rollup-plugin-sourcemaps2@npm:0.5.1"
12052-
dependencies:
12053-
"@rollup/pluginutils": "npm:5.1.4"
12054-
peerDependencies:
12055-
"@types/node": ">=18.0.0"
12056-
rollup: ">=4"
12057-
peerDependenciesMeta:
12058-
"@types/node":
12059-
optional: true
12060-
checksum: 10/dadcb7ab0b672c5b48cae014f96c9d2570b56727909d83f31c57815c6849a3494517be90434817c16c76de6ee0238b2aee1615a76191310a5de086fd995844e1
12061-
languageName: node
12062-
linkType: hard
12063-
12064-
"rollup@npm:^4.34.9, rollup@npm:^4.39.0":
12030+
"rollup@npm:^4.34.9":
1206512031
version: 4.40.0
1206612032
resolution: "rollup@npm:4.40.0"
1206712033
dependencies:

0 commit comments

Comments
 (0)