You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body-scroll-lock package has side-effects, thus it cannot be fully tree-shaken.
Reproduction
You can explore tree-shaking sample at rollup repl.
Expected
Expected to see in the output only my console.log
Actual
// http-url:https://unpkg.com/body-scroll-lock@latest/lib/bodyScrollLock.esm.jsvarhasPassiveEvents=false;if(typeofwindow!=="undefined"){passiveTestOptions={getpassive(){hasPassiveEvents=true;returnvoid0;}};window.addEventListener("testPassive",null,passiveTestOptions);window.removeEventListener("testPassive",null,passiveTestOptions);}varpassiveTestOptions;varisIosDevice=typeofwindow!=="undefined"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);// /input.tsxconsole.log("my side effects");
The text was updated successfully, but these errors were encountered:
Description
body-scroll-lock
package has side-effects, thus it cannot be fully tree-shaken.Reproduction
You can explore tree-shaking sample at rollup repl.
Expected
Expected to see in the output only my
console.log
Actual
The text was updated successfully, but these errors were encountered: