-
Notifications
You must be signed in to change notification settings - Fork 163
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
fix(core): output.assetsInclude
adds a rule but not exposes public api
#4385
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
output.assetsInclude
add a rule but not export public apioutput.assetsInclude
adds a rule but not exposes public api
@@ -99,6 +99,8 @@ export const CHAIN_ID = { | |||
IMAGE: 'image', | |||
/** Rule for media */ | |||
MEDIA: 'media', | |||
/** Rule for additional asset */ | |||
ADDITIONAL: 'additional', |
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.
Why not use additional-assets
here
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.
is additional-asets-asset-url
acceptable?
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.
But additional-assets-asset-url
is not a Rule name.
@@ -131,7 +131,7 @@ export const pluginAsset = (): RsbuildPlugin => ({ | |||
const { assetsInclude } = config.source; | |||
if (assetsInclude) { | |||
const { dataUriLimit } = config.output; | |||
const rule = chain.module.rule('additional-assets').test(assetsInclude); | |||
const rule = chain.module.rule('additional').test(assetsInclude); |
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.
Should use CHAIN_ID.
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.
same as above,
font, image does not use CHAIN_ID
CHAIN_ID
only for public api now
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.
If we are not using CHAIN_ID
here, why does this PR need to update the CHIND_ID
constant?
Summary
not regular
should be
${type}-asset-url
Related Links
for Rslib Asset
web-infra-dev/rslib#684
Checklist