fix: failed to resolve 'browserslist-load-config' module#12767
fix: failed to resolve 'browserslist-load-config' module#12767chenjiahan merged 2 commits intov2from
Conversation
β Deploy Preview for rspack-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR fixes a module resolution issue with browserslist-load-config by removing it from the prebundled dependencies and importing it directly. The change allows the package to be bundled into the main bundle instead of being externalized.
Changes:
- Removed
browserslist-load-configfrom prebundled dependencies inprebundle.config.mjs - Updated TypeScript path mappings to remove the compiled module reference
- Refactored
target.tsto use a top-level import instead of dynamic require - Removed extraneous blank lines in documentation files
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/rspack/prebundle.config.mjs | Removed browserslist-load-config from the dependencies array |
| packages/rspack/tsconfig.json | Removed path mapping for the compiled browserslist-load-config module |
| packages/rspack/src/config/target.ts | Changed from dynamic require to static import for browserslist-load-config |
| website/docs/zh/config/experiments.mdx | Removed blank line between code block and next section |
| website/docs/en/config/experiments.mdx | Removed blank line between code block and next section |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 5 projects with changes. π Quick Summary
π Detailed Reports (Click to expand)π react-10kPath:
π react-1kPath:
π react-5kPath:
π romePath:
π ui-componentsPath:
Generated by Rsdoctor GitHub Action |
π¦ Binary Size-limit
π Size decreased by 322.75KB from 47.99MB to 47.68MB (β¬οΈ0.66%) |
Summary
Fix failed to resolve
browserslist-load-configmodule. The package is small and can be bundled into the main bundle.Related links
Checklist