Skip to content

Commit

Permalink
fix(): emit loader if es5 is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jun 20, 2019
1 parent ac312b3 commit 0bbda39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/output-targets/output-lazy-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export async function outputLazyLoader(config: d.Config, compilerCtx: d.Compiler

async function generateLoader(config: d.Config, compilerCtx: d.CompilerCtx, outputTarget: d.OutputTargetDistLazyLoader) {
const loaderPath = outputTarget.dir;
const es5Dir = outputTarget.esmEs5Dir;
const es2017Dir = outputTarget.esmDir;
const es5Dir = outputTarget.esmEs5Dir || es2017Dir;
const cjsDir = outputTarget.cjsDir;

if (!loaderPath || !es5Dir || !es2017Dir || !cjsDir) {
if (!loaderPath || !es2017Dir || !cjsDir) {
return;
}

Expand Down

0 comments on commit 0bbda39

Please sign in to comment.