AngularWebpackPlugin needed?
- 主要语言
- TypeScript
- 星标
- 3.5k
- 派生
- 173
- PR 合并指标
- 30 天内没有已合并 PR
描述
custom-webpack.config.js
```
const ThreadsPlugin = require('threads-plugin')
module.exports = {
plugins: [
new ThreadsPlugin()
]
}
```
tsconfig.json
```
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": [
"es2018",
"dom"
],
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}
```
angular.json
```
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./custom-webpack.config.js",
"replaceDuplicatePlugins": true
},
...
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
```
When I run `ng serve` I get the following error
```
Error: ./src/app/sim/simulation-web-worker.worker.ts (./node_modules/threads-plugin/dist/loader.js?{"name":"0"}!./src/app/sim/simulation-web-worker.worker.ts)
Module build failed (from ./node_modules/threads-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: The Angular Webpack loader requires the AngularWebpackPlugin.
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。