Currently the library can't easily be used in browser environments as build tools such as webpack would pick the main lib/djv.js entry point, which contains ES2015 code. Since a built version is already generated (using babel-preset-env), adding a browser entry point to package.json would fix the issue, allowing webpack (when its target is set to web) to pick the transpiled one when needed.
@korzio/djv-draft-04 also needs to be updated as it currently has the same issue.
Currently the library can't easily be used in browser environments as build tools such as webpack would pick the main
lib/djv.js
entry point, which contains ES2015 code. Since a built version is already generated (usingbabel-preset-env
), adding abrowser
entry point topackage.json
would fix the issue, allowing webpack (when itstarget
is set toweb
) to pick the transpiled one when needed.@korzio/djv-draft-04
also needs to be updated as it currently has the same issue.