Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
Merge pull request #342 from jtmthf/master
Browse files Browse the repository at this point in the history
fix: undefined error on result.deps
  • Loading branch information
s-panferov authored Jan 28, 2017
2 parents ac0b023 + ef56f36 commit 6bd83ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function compiler(loader: Loader, text: string): void {

transformation
.then(({cached, result}) => {
if (!instance.compilerConfig.options.isolatedModules) {
if (!instance.compilerConfig.options.isolatedModules && result.deps) {
// If our modules are isolated we don't need to recompile all the deps
result.deps.forEach(dep => loader.addDependency(path.normalize(dep)));
}
Expand Down

0 comments on commit 6bd83ff

Please sign in to comment.