chore: modernize tooling and bump to v2#48
Merged
Conversation
- Remove eslint, @eslint/*, @typescript-eslint/parser, eslint-config-prettier, prettier - Add oxlint and oxfmt - Add .oxlintrc.json and .oxfmtrc.json (migrated from prettier config) - Remove eslint.config.mjs, .prettierrc.js, .prettierignore - Update lint script, add fmt and fmt:check scripts
- Remove unused debug variables in CypressCTRspackPlugin and makeDefaultRspackConfig - Remove unused catch parameter in CypressCTRspackPlugin
- Remove jest, @jest/globals, @types/jest, babel-jest, and babel config - Add vitest - Migrate test imports from @jest/globals to vitest - Replace jest.mock/jest.fn with vi.mock/vi.fn
- normalizeError: string/Error handling - makeRspackConfig: user config merging, plugin filtering, entry handling - CypressCTRspackPlugin: construction, hook registration, event emission - createRspackDevServer: server creation, liveReload mode - patchImportMeta: Module._extensions patching
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
- Rename .oxfmtrc.json to .oxfmtrc.jsonc - Add .oxfmtignore for dist/node_modules - Enable sortImports in oxfmt config - Apply formatting to all files
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Modernize the development toolchain and bump the package version to 2.0.0-rc.1 for Rspack v2 compatibility.
Tooling
oxfmt --write src/Cleanup
webpackdevDependencydebugvariables and catch parameterTests
Added unit tests for:
normalizeError,makeRspackConfig,CypressCTRspackPlugin,createRspackDevServer,patchImportMetaDocs
Removed dependencies
eslint,@eslint/js,@eslint/eslintrc,@typescript-eslint/parser,eslint-config-prettier,prettier,jest,@jest/globals,@types/jest,babel-jest,@babel/core,@babel/preset-env,@babel/preset-typescript,webpackAdded dependencies
oxlint,oxfmt,vitest,husky