-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Upgrade Vite to v8 #64600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Upgrade Vite to v8 #64600
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ab45f8b
Upgrade Vite to v8
ryanclark 5431b7e
Remove crypto.randomUUID polyfill
ryanclark 0201695
Remove tsconfigPathsPlugin from everywhere
ryanclark 4208937
pnpm format
ryanclark 19d9400
Update electron vite config with new options
ryanclark c93d333
Fix the loading of ace editor
ryanclark 28c7ce3
rollupOptions -> rolldownOptions in gen-event-reference-config
ryanclark e0f8c50
Import makeEvent directly to avoid including frontend code
ryanclark 35dc0ff
Fix electron config
ryanclark 4ec86d7
pnpm format
ryanclark 249d494
Ensure ace extensions load after ace is loaded
ryanclark 59c74e6
pnpm format
ryanclark 639d9db
Change external dependencies to only apply to main/preload
ryanclark 73ba262
Remove unused eslint directive
ryanclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| import { defineConfig } from 'vite'; | ||
|
|
||
| import { reactPlugin } from '@gravitational/build/vite/react.mjs'; | ||
| import { tsconfigPathsPlugin } from '@gravitational/build/vite/tsconfigPaths.mjs'; | ||
|
|
||
| export default defineConfig(({ mode }) => ({ | ||
| plugins: [tsconfigPathsPlugin(), reactPlugin(mode)], | ||
| resolve: { | ||
| tsconfigPaths: true, | ||
| }, | ||
| plugins: [reactPlugin(mode)], | ||
| })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Teleport | ||
| * Copyright (C) 2026 Gravitational, Inc. | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Affero General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU Affero General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Affero General Public License | ||
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| // These are in a separate file that is imported after ace.js, so that we can | ||
| // ensure that `ace` is defined as a global. | ||
| // Importing them directly from TextEditor.jsx would result in oxfmt rearranging | ||
| // the imports and putting these above the ace import, which would then cause them | ||
| // to fail to load. | ||
| import 'ace-builds/src-noconflict/ext-searchbox'; | ||
| import 'ace-builds/src-noconflict/mode-json'; | ||
| import 'ace-builds/src-noconflict/mode-terraform.js'; | ||
| import 'ace-builds/src-noconflict/mode-yaml'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.