Closed ayal closed 4 years ago
es5 should be consumed from main
field. module
field is specific to ES6 afaik.
I'm not sure we need the build step here since it's just one function that is ES6 compatible. It uses https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
Okay it seems the whole thing evolved since I last checked. Please create a PR for the fix.
Yeah, this is is breaking my build.
This also broke my build, changing my bundler cfg to resolve modules with mainFields: [ ... , 'main', 'module', ... ]
in this order worked for me. This fixes the issue locally, but doing so might break your build as well and is really hacky. A possible quick fix until a PR by @ayal is resolved, that might be worth mentioning nevertheless.
:tada: This issue has been resolved in version 2.2.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This PR broke es5 compatibility: https://github.com/react-dropzone/attr-accept/pull/47
module
field now points to the original, non-transpiled source - this might be considered a breaking changereact-dropzone itself has a
module
field but it has another build fores
: https://github.com/react-dropzone/react-dropzone/blob/master/package.json#L11 https://github.com/react-dropzone/react-dropzone/blob/master/package.json#L5