Skip to content
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

using browserify to build a standalone validate function #531

Merged
merged 12 commits into from
Aug 17, 2021
Merged

Conversation

nirnaor
Copy link
Contributor

@nirnaor nirnaor commented Aug 17, 2021

Why?

  1. AJV standalone does not really stand alone since the generated module is requiring some of the runtime folder of AJV.
  2. That runtime folder isn't built in es5, and even when I forked it - it requires internal modules inside of it

I needed a solution that will

  • Create a REAL standalone bundle
  • Contain all the dependencies relevant to the validate function
  • ES5 compatible

What?

Browserify does exactly that. Even tough it's a pretty old tool- it fits the needs described above
Ignoring lint for the bundled file

@nirnaor nirnaor merged commit 087dd5d into master Aug 17, 2021
@nirnaor nirnaor deleted the browserify branch August 17, 2021 11:50
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

Successfully merging this pull request may close these issues.

1 participant