Skip to content

Commit

Permalink
chore(rollup-plugin): use correcter simpler implementation
Browse files Browse the repository at this point in the history
turns out I didn't fully understand the original implementation!
  • Loading branch information
wjhsf committed Mar 7, 2025
1 parent 8e76c14 commit e087f0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@lwc/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ export default function lwc(pluginOptions: RollupLwcOptions = {}): Plugin {
disableSyntheticShadowSupport,
apiVersion: apiVersionToUse,
enableStaticContentOptimization:
pluginOptions.enableStaticContentOptimization ?? true,
// {enableStaticContentOptimization:undefined} behaves like `false`
// but {} (prop unspecified) behaves like `true`
'enableStaticContentOptimization' in pluginOptions
? pluginOptions.enableStaticContentOptimization
: true,
targetSSR,
ssrMode,
});
Expand Down

0 comments on commit e087f0f

Please sign in to comment.