Skip to content

Commit

Permalink
fix: type error in v13 env
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Jan 17, 2024
1 parent 319a28b commit baef144
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class MyAngularV13Env extends AngularV13Env {
*/
override preview(): EnvHandler<Preview> {
const ngEnvOptions = this.getNgEnvOptions();
const tsconfigPath = require.resolve('./config/tsconfig.app.json');
const tsconfigPath: string = require.resolve('./config/tsconfig.app.json');
/**
* To customize the dev server or bundler behavior, you can change webpack transformers, angular
* options and webpack options in the getDevServer and getBundler methods.
Expand All @@ -101,7 +101,7 @@ export class MyAngularV13Env extends AngularV13Env {
webpackOptions: any = {},
sourceRoot?: string
) => this.getDevServer(devServerContext, ngEnvOptions, transformers, {
...angularOptions,
...angularOptions as any,
tsConfig: tsconfigPath
}, webpackOptions, sourceRoot);
const bundlerProvider: BundlerProvider = (
Expand All @@ -111,7 +111,7 @@ export class MyAngularV13Env extends AngularV13Env {
webpackOptions: any = {},
sourceRoot?: string
) => this.getBundler(bundlerContext, ngEnvOptions, transformers, {
...angularOptions,
...angularOptions as any,
tsConfig: tsconfigPath
}, webpackOptions, sourceRoot);
return AngularPreview.from({
Expand Down

0 comments on commit baef144

Please sign in to comment.