-
Notifications
You must be signed in to change notification settings - Fork 198
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
_setDefaults Syntax #282
Comments
See also #279. It's ES2018 Object spread syntax: https://github.com/tc39/proposal-object-rest-spread. I'm unsure what we'll do about this issue. If you're running webpack yourself you can use a babel plugin just like jsonld.js itself does: https://babeljs.io/docs/en/babel-plugin-transform-object-rest-spread.html. |
Thanks a lot David! That makes a lot of sense. I was able to get around the webPack error after adding something similar to a rule in |
Check out |
A webpack friendly entry should be applied: #317 |
jsonld.js/lib/jsonld.js
Line 1048 in c8f945d
When trying to include jsonld in webpack, I am discovering this seemingly incorrect syntax. For one, there seems to be an assignment within a JSON object in line 1049. Additionally, I am unclear of the propriety of the ellipsis before
defaults
in line 1050. Again, I am just a messenger of this webpack-generated error and I hope that we can resolve this soon.The text was updated successfully, but these errors were encountered: