Closed lukehorvat closed 5 years ago
Hi. I'd like to use jsmediatags in-browser, but as an npm package bundled by Webpack.
jsmediatags
Currently it doesn't work because build2/jsmediatags.js tries to require fs (for NodeFileReader), which obviously doesn't work in a browser.
build2/jsmediatags.js
fs
NodeFileReader
Specifying dist/jsmediatags.js as the browser field in package.json allows it to work with Webpack. 🙂
dist/jsmediatags.js
Awesome! Thank you for improving this library!
@aadsm Any chance you'll be publishing a new version to npm soon?
@lukehorvat just did!
Thank you. 👌
Hi. I'd like to use
jsmediatags
in-browser, but as an npm package bundled by Webpack.Currently it doesn't work because
build2/jsmediatags.js
tries to requirefs
(forNodeFileReader
), which obviously doesn't work in a browser.Specifying
dist/jsmediatags.js
as the browser field in package.json allows it to work with Webpack. 🙂