-
Notifications
You must be signed in to change notification settings - Fork 56
Build with Vite #1396
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
Open
binh-dam-ibigroup
wants to merge
66
commits into
dev
Choose a base branch
from
build-with-vite
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,447
−821
Open
Build with Vite #1396
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
7b550ea
build: First attempt to build with Vite
binh-dam-ibigroup 984f10e
build(vite): Replace vite-yaml with esbuild-plugin-yaml
binh-dam-ibigroup 050549a
build(vite): Correct js loading plugins
binh-dam-ibigroup 8fc2494
build(vite): Convert config YML to JSON
binh-dam-ibigroup 519792b
refactor: Fix config imports in top-level files.
binh-dam-ibigroup 900ffaf
build(vite): Add plugin to import YAML files
binh-dam-ibigroup 3d2b7f0
build(vite): Remove unused import
binh-dam-ibigroup b5b900c
style(app): Replace backtick in import
binh-dam-ibigroup 219a30c
refactor(util/i18n): Import i18n yml files correctly.
binh-dam-ibigroup b0c2e73
refactor(util/i18n): Simplify i18n imports from OTP-RR.
binh-dam-ibigroup 2995f26
refactor(util/i18n): Use Vite glob import for i18n content.
binh-dam-ibigroup 0b68831
refactor(util/i18n): Import default from i18n yaml
binh-dam-ibigroup be357bb
refactor(api): Remove isomorphic fetch
binh-dam-ibigroup 247497f
chore(deps): Upgrade object-hash to 3.0
binh-dam-ibigroup 62ef2e7
refactor(app): Pass config.js fields correctly.
binh-dam-ibigroup 5e79f2a
Merge branch 'dev' into build-with-vite
binh-dam-ibigroup 58a38e0
ci(node-ci): Upgrade node to v22
binh-dam-ibigroup 21377e3
build: Restore eslint script
binh-dam-ibigroup 3a68a9e
build(esline): Remove extra eslint config file
binh-dam-ibigroup 52b91a1
build: Restore eslint check in precommit
binh-dam-ibigroup 8380027
build(eslint): Reuse existing eslint
binh-dam-ibigroup 29c7c73
Merge branch 'dev' into build-with-vite
binh-dam-ibigroup 5fc92fd
build(eslint): Reuse existing eslint version
binh-dam-ibigroup e16b860
refactor(i18n-loader): Extract code for loading i18n content.
binh-dam-ibigroup 3730137
test(jest): Map i18n-loader to a mock file.
binh-dam-ibigroup 6679e94
build: Use Vite and remove craco from yarn start and yarn build
binh-dam-ibigroup 3ea5f2b
test(a11y): Move example files to example folder so they can be built.
binh-dam-ibigroup e2a5497
ci(percy): Use node 22 and update config yml paths.
binh-dam-ibigroup e9ae770
ci(percy): Download calltaker config to repo root
binh-dam-ibigroup de299a9
build(vite): Correctly import graphql files.
binh-dam-ibigroup d86aded
build: Support old blob package for call-taker
binh-dam-ibigroup 6de3e1c
chore(yarn): Update yarn.lock
binh-dam-ibigroup 0a18ded
test(serve): Replace serve with vite preview
binh-dam-ibigroup e02dc1b
build(vite): Stop forcing deps optimization.
binh-dam-ibigroup a7afef6
build(craco): Remove craco and webpack deps
binh-dam-ibigroup 40cbc0e
build(babel): Remove unused Babel plugins
binh-dam-ibigroup 9f34e61
test(jest): Remove react-scripts and explicitly add updated jest libs
binh-dam-ibigroup ad92a84
chore(test): Remove unused testing libs
binh-dam-ibigroup 2a1ed3f
Revert "chore(test): Remove unused testing libs"
binh-dam-ibigroup 802618a
Revert "test(jest): Remove react-scripts and explicitly add updated j…
binh-dam-ibigroup 5cd4aea
build(vite): Support custom HTML files. Refactor custom file logic.
binh-dam-ibigroup a7dc3ed
build(vite): Tweak comments in vite.config.js
binh-dam-ibigroup 7823f07
build(vite): Simplify custom file logic
binh-dam-ibigroup afd504b
chore(index.html): Remove index.html from repo root
binh-dam-ibigroup b603a50
chore(.gitignore): Ignore index.html
binh-dam-ibigroup 128bc90
build(vite): Inject main script into index.html. Clean up main template.
binh-dam-ibigroup f1717b1
refactor(main.js): Remove obsolete comments
binh-dam-ibigroup 482c016
build(vite): Tweak comments in vite.config
binh-dam-ibigroup 5113867
refactor(main.js): Remove old IE11 math polyfill
binh-dam-ibigroup 1da2446
build(vite): Correctly strip multiline comments from index.html
binh-dam-ibigroup 321d5e6
refactor: Cleanup main and index templates
binh-dam-ibigroup 0c55352
chore(deps): Remove globals
binh-dam-ibigroup b51429e
build(vite): Output js modules to dist directly (no subfolder)
binh-dam-ibigroup e939acf
build(vite): Add comment regarding assetsDir
binh-dam-ibigroup c0d1b43
build(vite): Fix comment typo
binh-dam-ibigroup e2d2774
build(vite): Watch custom files and copy to tmp if modified.
binh-dam-ibigroup 08c6215
build(vite): Fix copying js from a folder.
binh-dam-ibigroup 69c8cbd
build(vite): Watch custom files in dev mode only.
binh-dam-ibigroup b8f035a
Merge branch 'dev' into build-with-vite
binh-dam-ibigroup b9c6d43
Merge branch 'dev' into build-with-vite
daniel-heppner-ibigroup 8350f8e
Merge branch 'dev' into build-with-vite
miles-grant-ibigroup 60151c9
Merge branch 'dev' into build-with-vite
binh-dam-ibigroup a58aa35
Merge branch 'dev' into build-with-vite
binh-dam-ibigroup 66f7777
build(.nvmrc): Use Node v22.
binh-dam-ibigroup 76969a0
build(vite): Don't rename copied graphql files.
binh-dam-ibigroup 901901b
Merge branch 'dev' into build-with-vite
binh-dam-ibigroup 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
21 | ||
22 |
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,3 @@ | ||
export async function loadLocaleData(matchedLocale, customMessages) { | ||
return {} | ||
} |
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.
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
File renamed without changes.
File renamed without changes.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you remember what the purpose of moving this into its own file was? Just curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is to isolate the parts that use the Vite-specific glob imports. This file is mocked for tests (tests continue to use Babel).