Help bundling for vanilla web
hesa2020 opened this issue · comments
Sylvain Martens commented
Hello I would like to use this library in vanilla web project (without nodejs).
I tried using browserify to bundle the app using the following command: browserify ./lib/index.js -o iconv.js
However I get iconv is undefined when i try to use the variable after using <script> tag, not sure what I am doing wrong or if it is possible at all.
Sylvain Martens commented
Found out this worked out for me: globalify iconv-lite -o iconv-lite.js