-
Notifications
You must be signed in to change notification settings - Fork 350
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
feat: support splat route config file #4673
Conversation
🦋 Changeset detectedLatest commit: 7fe8254 The changes in this PR will be included in the next version bump. This PR includes changesets to release 253 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4673 +/- ##
==========================================
- Coverage 57.59% 53.75% -3.85%
==========================================
Files 672 664 -8
Lines 17794 18098 +304
Branches 3876 4146 +270
==========================================
- Hits 10249 9729 -520
- Misses 6934 7712 +778
- Partials 611 657 +46 ☔ View full report in Codecov by Sentry. |
59d2241
to
7fe8254
Compare
Summary
🤖 Generated by Copilot at 63977ee
This pull request adds a new feature to the
@modern-js/app-tools
package that allows users to create a splat route config file ($.config
) for any route path and specify some route options. It also adds the Chinese translation for this feature.Details
🤖 Generated by Copilot at 63977ee
@modern-js/app-tools
package (link)SPLATE_CONFIG_FILE
constant toNESTED_ROUTE
object inconstants.ts
file to represent splat route config file name (link)walk
function innestedRoutes.ts
file to support reading and applying splat route config file for nested routes (link, link, link)splatConfigFile
variable to store splat route config file path if it exists in current directory (link)splatConfigFile
variable if current item is splat route config file and current route has no config property (link)splatConfigFile
variable toconfig
property ofsplatRoute
object if it has a value (link)Related Issue
Checklist
pnpm run change
.