Skip to content

Commit

Permalink
chore: migrate from parcel to microbundle (#13)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: FRSHideScrollbar is now shipped via regular export rather than default one
  • Loading branch information
FRSgit authored and Jakub Freisler committed Oct 31, 2019
1 parent 356d4ef commit 3f0bafd
Show file tree
Hide file tree
Showing 33 changed files with 1,877 additions and 2,746 deletions.
4 changes: 0 additions & 4 deletions dist/FRS-hide-scrollbar.browser.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/FRS-hide-scrollbar.css
@@ -0,0 +1 @@
.frs-hide-scroll-wrapper{overflow:hidden;height:100%}.frs-hide-scroll{overflow:scroll;height:100%}
8 changes: 2 additions & 6 deletions dist/FRS-hide-scrollbar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/FRS-hide-scrollbar.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/FRS-hide-scrollbar.mjs
@@ -0,0 +1,2 @@
var e,t=window.FRSHideScrollbar||{},i=t.config=t.config||{};function l(){var e=n("div",document.body);e.style.position="absolute",e.style["z-index"]="-1",e.style.width="100px",e.style.overflow="scroll";var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t!==i.scrollWidth&&(i.scrollWidth=t,s()),t}function n(e,t){return t.appendChild(document.createElement(e))}function s(t,l){if(void 0===t&&(t=i.styleElement),void 0===l&&(l=e),l){var n=l.styleElement,s=n.innerText.lastIndexOf("."+l.className+"{margin-right:-");n.innerText=n.innerText.substring(0,s)}0!==i.scrollWidth&&(e=Object.assign({},i),t.innerText+="."+i.className+"{margin-right:-"+(i.scrollWidth+.5)+"px;height:calc(100% + "+i.scrollWidth+"px)}")}t.refreshScrollWidth=l,t.createNewChild=n,t.updateStyles=s,i.className=i.className||"frs-hide-scroll",i.wrapperClassName=i.wrapperClassName||"frs-hide-scroll-wrapper",i.styleElement=i.styleElement||document.getElementsByTagName("style")[0]||n("style",document.head),i.autoInit=void 0===i.autoInit||i.autoInit,i.autoInit&&(document.readyState&&"loading"!==document.readyState?l():window.addEventListener("load",l,{passive:!0}),window.addEventListener("resize",l,{passive:!0}));export{t as FRSHideScrollbar};
//# sourceMappingURL=FRS-hide-scrollbar.mjs.map
1 change: 1 addition & 0 deletions dist/FRS-hide-scrollbar.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f0bafd

Please sign in to comment.