mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Remove rolldown dependency (#65330)
This commit is contained in:
@@ -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",
|
||||
|
||||
Generated
-3
@@ -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\/.+/,
|
||||
|
||||
Reference in New Issue
Block a user