Remove rolldown dependency (#65330)

This commit is contained in:
Grzegorz Zdunek
2026-04-03 07:23:52 +00:00
committed by GitHub
parent 8d0a254626
commit fc19088fce
3 changed files with 3 additions and 8 deletions
-1
View File
@@ -61,7 +61,6 @@
"oxlint": "^1.55.0",
"playwright": "^1.58.2",
"react-select-event": "^5.5.1",
"rolldown": "^1.0.0-rc.9",
"storybook": "^10.2.14",
"svgo": "^4.0.1",
"typescript": "^5.9.3",
-3
View File
@@ -211,9 +211,6 @@ importers:
react-select-event:
specifier: ^5.5.1
version: 5.5.1
rolldown:
specifier: ^1.0.0-rc.9
version: 1.0.0-rc.9
storybook:
specifier: ^10.2.14
version: 10.2.14(@testing-library/dom@10.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
@@ -21,8 +21,7 @@ import { builtinModules } from 'node:module';
import path from 'node:path';
import { defineConfig, UserConfig } from 'electron-vite';
import type { RolldownOptions } from 'rolldown';
import type { Plugin } from 'vite';
import type { Plugin, Rolldown } from 'vite';
import { reactPlugin } from '@gravitational/build/vite/react.mjs';
@@ -47,7 +46,7 @@ const deps = Object.keys(pkg.dependencies || {}).filter(
dep => !externalizeDeps.includes(dep)
);
const commonRolldownOptions: RolldownOptions = {
const commonRolldownOptions: Rolldown.RolldownOptions = {
onLog(level, log, defaultHandler) {
// Suppress direct eval warning from @protobufjs/inquire.
// The eval is intentional (to call require without bundler detection) and patching
@@ -62,7 +61,7 @@ const commonRolldownOptions: RolldownOptions = {
// Main and preload run in Node.js, so we externalize electron, Node.js built-in
// modules, and package.json dependencies (they'll be included during packaging).
const nodeExternalOptions: RolldownOptions = {
const nodeExternalOptions: Rolldown.RolldownOptions = {
external: [
'electron',
/^electron\/.+/,