Closed zzuu666 closed 3 years ago
sideEffects filed in lowlight/package.json is false, and webpack will tree shake ./lib/common.js, so those register events will not execute.
sideEffects
lowlight/package.json
false
./lib/common.js
IMO, lib/common.js and lib/all.js are have side effects, so sideEffects should not be false.
lib/common.js
lib/all.js
this is an example, https://github.com/zzuu666/webpack-side-effects
Thanks.
solved! (most likely, can you check?)
yes, it works after I upgrade to 2.2.1.
sideEffects
filed inlowlight/package.json
isfalse
, and webpack will tree shake./lib/common.js
, so those register events will not execute.IMO,
lib/common.js
andlib/all.js
are have side effects, sosideEffects
should not befalse
.this is an example, https://github.com/zzuu666/webpack-side-effects
Thanks.