Closed lynxtaa closed 3 years ago
Solves https://github.com/sindresorhus/p-queue/issues/127 by adding ES-module wrapper for CommonJS version.
This approach avoids dual package hazard by creating wrapper.mjs file in a dist folder after successful build. See https://nodejs.org/api/packages.html#packages_approach_1_use_an_es_module_wrapper
wrapper.mjs
dist
I appreciate the PR, but I'm moving fully to ESM output instead.
Solves https://github.com/sindresorhus/p-queue/issues/127 by adding ES-module wrapper for CommonJS version.
This approach avoids dual package hazard by creating
wrapper.mjs
file in adist
folder after successful build. See https://nodejs.org/api/packages.html#packages_approach_1_use_an_es_module_wrapper