@@ -28,9 +28,10 @@ import { CompositionsMain } from '@teambit/compositions';
28
28
import { Logger } from '@teambit/logger' ;
29
29
import { WebpackConfigWithDevServer , WebpackMain } from '@teambit/webpack' ;
30
30
import { Workspace } from '@teambit/workspace' ;
31
+ import { PkgMain } from '@teambit/pkg' ;
31
32
import path from 'path' ;
32
33
import webpack , { Configuration } from 'webpack' ;
33
- import WsDevServer , { addDevServerEntrypoints } from 'webpack-dev-server' ;
34
+ import WsDevServer from 'webpack-dev-server' ;
34
35
import { webpack5BuildConfigFactory } from './webpack/webpack5.build.config' ;
35
36
import { webpack5ServeConfigFactory } from './webpack/webpack5.serve.config' ;
36
37
import { AngularV12Aspect } from './angular-v12.aspect' ;
@@ -42,8 +43,8 @@ export class AngularV12Webpack extends AngularWebpack {
42
43
webpackBuildConfigFactory = webpack5BuildConfigFactory ;
43
44
webpack : typeof webpack ;
44
45
45
- constructor ( workspace : Workspace | undefined , webpackMain : WebpackMain , compositions : CompositionsMain , nodeModulesPaths : string [ ] ) {
46
- super ( workspace , webpackMain , compositions , AngularV12Aspect , nodeModulesPaths ) ;
46
+ constructor ( workspace : Workspace | undefined , webpackMain : WebpackMain , compositions : CompositionsMain , pkg : PkgMain , nodeModulesPaths : string [ ] ) {
47
+ super ( workspace , webpackMain , compositions , pkg , AngularV12Aspect , nodeModulesPaths ) ;
47
48
// resolving to the webpack used by angular devkit to avoid multiple instances of webpack
48
49
// otherwise, if we use a different version, it would break
49
50
const buildAngular = require . resolve ( '@angular-devkit/build-angular' ) ;
@@ -106,7 +107,7 @@ export class AngularV12Webpack extends AngularWebpack {
106
107
workspaceRoot : string ,
107
108
logger : Logger ,
108
109
setup : WebpackSetup ,
109
- webpackOptions : Partial < WebpackConfigWithDevServer > = { } ,
110
+ webpackOptions : Partial < WebpackConfigWithDevServer | Configuration > = { } ,
110
111
angularOptions : Partial < BrowserBuilderSchema > = { }
111
112
) : Promise < WebpackConfigWithDevServer | Configuration > {
112
113
// Options from angular.json
0 commit comments