Skip to content

Commit

Permalink
build: add missing path mapping for build-webpack import causing li…
Browse files Browse the repository at this point in the history
…nt error

I suspect there were some versioning changes with the e.g. `hoist =
false` setting in npmrc; so eslint now starts failing about an import
from `webpack-server.ts` resulting in unnecessary type cast lint errors.

The existing mapping didn't work due to the underscore conversion, so
this makes sense, and fixing the path mappings works.
  • Loading branch information
devversion authored and clydin committed Dec 16, 2024
1 parent 417ef7a commit ad450e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export function serveWebpackBrowser(
...buildEvent,
baseUrl: serverAddress,
stats: generateBuildEventStats(webpackRawStats, browserOptions),
};
} as DevServerBuilderOutput;
}),
);
}),
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@angular-devkit/schematics/tools": ["./packages/angular_devkit/schematics/tools/index"],
"@angular-devkit/schematics/testing": ["./packages/angular_devkit/schematics/testing/index"],
"@angular-devkit/architect/testing": ["./packages/angular_devkit/architect/testing/index"],
"@angular-devkit/build-webpack": ["./packages/angular_devkit/build_webpack"],
"@angular-devkit/*": ["./packages/angular_devkit/*/src"],
"@angular/*": ["./packages/angular/*/src"],
"@angular/build/private": ["./packages/angular/build/src/private"],
Expand Down

0 comments on commit ad450e3

Please sign in to comment.