How to use inline ts + web worker with rsbuild #5168
Unanswered
TianJianJun0727
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
rspack: {
resolveLoader: {
alias: {
'worker-loader': require.resolve('worker-rspack-loader')
},
},
module: {
rules: [
{
test: /.worker.{js,ts}$/,
loader: 'worker-rspack-loader',
options: { inline: 'no-fallback' }
}
],
},
}
类似上面写法,但无法正常运行
https://github.com/rspack-contrib/rstack-examples/tree/main/rspack/worker-inline
Beta Was this translation helpful? Give feedback.
All reactions