How do I import an object from a library?
Installed the smoothscroll-polyfiill library
The documentation says to import 'import smoothscroll from' smoothscroll-polyfill ';'. It seems that everything is clear and understandable, but I have ES5 syntax according to the TK, and modularity in IIFE.
Build in IIFE, for example via Rollup . Or just a second connection file.
<script src="b.js"></script>Violet Cameron
To place the code, please use CodePen or similar tool. Thanks you!