mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
feat: add worker support
This commit is contained in:
@ -182,6 +182,14 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
},
|
||||
});
|
||||
|
||||
config.module
|
||||
.rule('workers')
|
||||
.test(/\.(js|ts)$/)
|
||||
.exclude.add(/node_modules/)
|
||||
.end()
|
||||
.use('nativescript-worker-loader')
|
||||
.loader('nativescript-worker-loader')
|
||||
|
||||
// default PostCSS options to use
|
||||
// projects can change settings
|
||||
// via postcss.config.js
|
||||
|
Reference in New Issue
Block a user