Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit aaa9d3c

Browse files
michaelgeorgeattarddanbucholtz
authored andcommitted
fix(webpack): fix issue where bundles output to build dir sub directo… (#938)
* fix(webpack): fix issue where bundles output to build dir sub directory are not emitted * Update webpack.ts
1 parent 64e2ff1 commit aaa9d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function webpackBuildComplete(stats: any, context: BuildContext, webpackConfig:
113113

114114
export function writeBundleFilesToDisk(context: BuildContext) {
115115
const bundledFilesToWrite = context.fileCache.getAll().filter(file => {
116-
return dirname(file.path) === context.buildDir && (file.path.endsWith('.js') || file.path.endsWith('.js.map'));
116+
return dirname(file.path).indexOf(context.buildDir) >= 0 && (file.path.endsWith('.js') || file.path.endsWith('.js.map'));
117117
});
118118
context.bundledFilePaths = bundledFilesToWrite.map(bundledFile => bundledFile.path);
119119
const promises = bundledFilesToWrite.map(bundledFileToWrite => writeFileAsync(bundledFileToWrite.path, bundledFileToWrite.content));

0 commit comments

Comments
 (0)