Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): better handle relative paths with…
Browse files Browse the repository at this point in the history
… bundleDependencies=false

When `bundleDependencies` is turned off, webpack only bundles modules imported via relative path.
Existing check works well for import paths like `'./some/file'`,
but fails for imports traversing the dir structure up, like `'../some/file'`.
  • Loading branch information
amakhrov authored and filipesilva committed Aug 10, 2020
1 parent a3637af commit 780c82d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -53,7 +53,7 @@ export function getServerConfig(wco: WebpackConfigOptions): Configuration {
...externalDependencies,
(context: string, request: string, callback: (error?: null, result?: string) => void) => {
// Absolute & Relative paths are not externals
if (request.startsWith('./') || isAbsolute(request)) {
if (request.startsWith('.') || isAbsolute(request)) {
callback();

return;
Expand Down

0 comments on commit 780c82d

Please sign in to comment.