aadsm / jsmediatags

Media Tags Reader (ID3, MP4, FLAC)
Other
752 stars 128 forks source link

Add browser field to package.json #113

Closed lukehorvat closed 5 years ago

lukehorvat commented 5 years ago

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 require fs (for NodeFileReader), 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. 🙂

aadsm commented 5 years ago

Awesome! Thank you for improving this library!

lukehorvat commented 5 years ago

@aadsm Any chance you'll be publishing a new version to npm soon?

aadsm commented 5 years ago

@lukehorvat just did!

lukehorvat commented 5 years ago

Thank you. 👌