Skip to content

Commit

Permalink
fix(): webpackIncludes matches legacy files (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 24, 2019
1 parent 41c4f75 commit 467a966
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compiler/config/validate-outputs-dist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function validateOutputTargetDist(config: d.Config) {

if (config.buildDist) {
const esmDir = path.join(outputTarget.dir, 'esm');
const esmEs5Dir = config.buildEs5 ? path.join(outputTarget.dir, 'esm', 'legacy') : undefined;
const esmEs5Dir = config.buildEs5 ? path.join(outputTarget.dir, 'esm-es5') : undefined;
const cjsDir = path.join(outputTarget.dir, 'cjs');

// Create lazy output-target
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/output-targets/test/output-targets-dist.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ describe('outputTarget, dist', () => {

path.join(root, 'User', 'testing', 'dist', 'esm', 'index.mjs'),
path.join(root, 'User', 'testing', 'dist', 'esm', 'loader.mjs'),
path.join(root, 'User', 'testing', 'dist', 'esm', 'legacy', 'index.mjs'),
path.join(root, 'User', 'testing', 'dist', 'esm', 'legacy', 'loader.mjs'),
path.join(root, 'User', 'testing', 'dist', 'esm-es5', 'index.mjs'),
path.join(root, 'User', 'testing', 'dist', 'esm-es5', 'loader.mjs'),
path.join(root, 'User', 'testing', 'dist', 'esm', 'polyfills', 'index.js'),

path.join(root, 'User', 'testing', 'dist', 'loader'),
Expand Down

0 comments on commit 467a966

Please sign in to comment.