-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Take into account ajv code.esm
option
#68
Labels
enhancement
New feature or request
Comments
I think it can still export these objects, they would be just rendered differently. The solution is for ajv-formats to take code.esm option into account, moving this issue there... |
epoberezkin
changed the title
Standalone.
Take into account ajv May 13, 2022
code.esm=true
outputs require()
for external modulescode.esm
option
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Ajv are you using? Does the issue happen if you use the latest version?
8.11.0
(currently latest)Ajv options object
JSON Schema
Output
What results did you expect?
Are you going to resolve the issue?
I've tried to look into it, but it seems to be coupled with many ajv packages, so please let me know your proposal.
I believe the resolution should be done in multiple steps:
import
should be used instead ofrequire
(this issue)ajv-formats
should export every function separately, not scoped withinfullFormats
,fastFormats
, etc. (Export formats separately, without scoping #65)The text was updated successfully, but these errors were encountered: