Skip to content

Commit

Permalink
fix(prerender): only comment original selectors for shadow css
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Mar 4, 2020
1 parent efca632 commit b5757df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler_next/bundle/ext-transforms-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const extTransformsPlugin = (config: d.Config, compilerCtx: d.CompilerCtx

const modules = Array.from(compilerCtx.moduleMap.values());
const moduleFile = modules.find(m => m.cmps.some(c => c.tagName === data.tag));
const commentOriginalSelector = (bundleOpts.platform === 'hydrate');
const commentOriginalSelector = (bundleOpts.platform === 'hydrate') && (data.encapsulation === 'shadow');

if (moduleFile) {
const collectionDirs = (config.outputTargets as d.OutputTargetDist[]).filter(o => o.collectionDir);
Expand Down

0 comments on commit b5757df

Please sign in to comment.