Skip to content

Commit

Permalink
fix(worker): inline worker if there is a dist output target (#2450)
Browse files Browse the repository at this point in the history
fixes #2438
  • Loading branch information
manucorporat committed Jun 4, 2020
1 parent 2a8b1f1 commit a96b346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/output-targets/dist-lazy/lazy-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { bundleOutput } from '../../bundle/bundle-output';
import { catchError } from '@utils';
import { generateEntryModules } from '../../entries/entry-modules';
import { getLazyBuildConditionals } from './lazy-build-conditionals';
import { isOutputTargetDistLazy } from '../output-utils';
import { isOutputTargetDistLazy, isOutputTargetDist } from '../output-utils';
import {
LAZY_BROWSER_ENTRY_ID,
LAZY_EXTERNAL_ENTRY_ID,
Expand Down Expand Up @@ -38,6 +38,7 @@ export const outputLazy = async (config: d.Config, compilerCtx: d.CompilerCtx, b
platform: 'client',
conditionals: getLazyBuildConditionals(config, buildCtx.components),
customTransformers: getLazyCustomTransformer(config, compilerCtx),
inlineWorkers: config.outputTargets.some(isOutputTargetDist),
inputs: {
[config.fsNamespace]: LAZY_BROWSER_ENTRY_ID,
loader: LAZY_EXTERNAL_ENTRY_ID,
Expand Down

0 comments on commit a96b346

Please sign in to comment.