Ability to import source as raw/url #2665
-
I have a form where user should upload file in
It works in But seems like it doesn't work:
Is it supported? |
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Jun 24, 2024
Replies: 1 comment 1 reply
-
Try this: // rsbuild.config.ts
export default defineConfig({
tools: {
rspack: {
module: {
rules: [
{
resourceQuery: /url$/,
type: 'asset/resource',
},
{
resourceQuery: /raw$/,
type: 'asset/source',
},
],
},
},
},
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
maxsbelt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this: