-
-
Notifications
You must be signed in to change notification settings - Fork 88
refactor: use Rslib to build packages #1182
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
Conversation
✅ Deploy Preview for rsdoctor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
f416b68
to
d03e521
Compare
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.
Pull Request Overview
This PR migrates the build system from Modern.js to Rslib across multiple packages in the RsDoctor monorepo. The migration involves updating build commands, replacing configuration files, and adjusting ESM output file extensions.
Key changes:
- Replace Modern.js build tooling with Rslib across packages
- Create new shared Rslib configuration in
scripts/rslib.base.config.ts
- Update ESM output file extensions from
.js
to.mjs
for better module resolution
Reviewed Changes
Copilot reviewed 26 out of 27 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
scripts/rslib.base.config.ts | Adds new shared Rslib build configuration with CommonJS and ESM format support |
scripts/modern.base.config.ts | Removes deprecated ESM configuration that's been migrated to Rslib |
packages/*/package.json | Updates build scripts from "modern build" to "rslib build" and adds @rslib/core dependency |
packages/*/rslib.config.ts | Adds Rslib configuration files replacing Modern.js configs |
packages/*/modern.config.ts | Removes old Modern.js configuration files |
packages/utils/package.json | Updates ESM export paths from .js to .mjs extensions |
Comments suppressed due to low confidence (1)
packages/rspack-plugin/rslib.config.ts:3
- [nitpick] The variable name 'rslibConfig' is redundant since this is already in an rslib config file. Consider renaming to 'config' for brevity.
const rslibConfig = {
The @modern-js/module-tools package in the root/package.json dependencies may be unnecessary and can possibly be removed. |
Summary
not finished yet, i found some wrong output instatic-commonjs
export format, which need to be fixed ahead.i made a mistake, there was no bug, we could migrate some packages in this PR.
@rsdoctor/core
has a circular require and will be migrated in another separated PR.Related Links