Skip to content

rdf-canonize throws SyntaxError in IE due to untranspiled sources for the browser #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexeyMz opened this issue Jul 10, 2019 · 1 comment

Comments

@AlexeyMz
Copy link

browser property in package.json has the following value:

...
"./index.js": "./dist/index.js",

Which causes untranspiled library sources (with async-functions and class declarations) to be included when rdf-canonize is used as a dependency, e.g. when importing jsonld.

This was discovered here: digitalbazaar/jsonld.js#319

@AlexeyMz
Copy link
Author

For JSON-LD this PR fixes Webpack configuration to bundle pre-transpiled rdf-canonize package:
digitalbazaar/jsonld.js#321

So in case anyone wants to use ES5-compatible JSON-LD bundle it should be enough to import jsonld/dist/jsonld.js instead of main entry point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant