We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Support asset module based on publicPath: 'auto'
publicPath: 'auto'
css
publicPath: auto
js
module.generator.experimentalLibPreserveImport
__mini_css_extract_plugin_public_path_auto__
module.generator['asset'].experimentalLibReExport
output.publicPath: 'auto'
└── src ├── assets │ └── react.svg // <-- └── index.tsx
// index.tsx import foo from './assets/react.svg'; console.log(foo);
./dist └── esm ├── assets │ └── react.mjs // <-- ├── static/svg │ └── react.svg // <-- ├── index.d.ts └── index.mjs
// dist/esm/assets/react.mjs import url from '../static/svg/react.svg'; export default url;
// dist/esm/index.mjs import foo from './assets/react.mjs'; console.log(foo);
The text was updated successfully, but these errors were encountered:
Asset module related issue:
"bundle": false
__webpack_require__.p
Sorry, something went wrong.
When wil this feature be released?
There's no exact time. Check this issue to track.
No branches or pull requests
What problem does this feature solve?
Support asset module based on
publicPath: 'auto'
Bundle
css
publicPath: auto
feat(css): support css asset in bundle mode and esm/cjs #573js
module.generator.experimentalLibPreserveImport
in feat(plugin-asset): support re-export and preserve-import in asset for Rslib rspack#8724Bundleless
css
__mini_css_extract_plugin_public_path_auto__
place-holder https://github.com/web-infra-dev/rspack/blob/dfb1734c626290250acb40140460c0c1022335ac/crates/rspack_plugin_extract_css/src/plugin.rs#L45 in lib-css-extract-loader feat(css): support css asset in bundleless mode and esm/cjs #582js
publicPath: auto
in asset module rspack#8748module.generator['asset'].experimentalLibReExport
in feat(plugin-asset): support re-export and preserve-import in asset for Rslib rspack#8724final
output.publicPath: 'auto'
by default for esm/cjs formatWhat does the proposed API look like?
input
output
The text was updated successfully, but these errors were encountered: