APIDevTools / json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
https://apitools.dev/json-schema-ref-parser
MIT License
942 stars 226 forks source link

Webpack 5 polyfill fix #313

Closed giorgioma closed 11 months ago

giorgioma commented 1 year ago

Hello there ! Awesome package :)

I am using this package and I have recently upgraded to webpack 5 but unfortunately there is no fs/promise polyfill available for this to be compatible with the latest webpack. I have written a small workaround for it to work, I am not sure if it is a breaking change, all the tests are passing correctly. I have change the following file to fix:

Uncaught Error: Cannot find module 'fs/promises'

and added some documentation for using it on webpack 5

jonluca commented 11 months ago

Closed in favor of #321