This adds a simple second tsconfig that has module: ES2022 and the required module field in the package.json so that bundlers like webpack can find it.
This is required in order for this package to work with @vercel/webpack-asset-relocator-loader which is a pre-requisite to using this module in certain webpack deployment environments (electron, single-package-executables, etc.)
I specifically chose to ship dist-esm instead of dist/cjs and dist/esm to avoid path resolution changes 🤷
This adds a simple second tsconfig that has
module: ES2022
and the requiredmodule
field in the package.json so that bundlers like webpack can find it.This is required in order for this package to work with
@vercel/webpack-asset-relocator-loader
which is a pre-requisite to using this module in certain webpack deployment environments (electron, single-package-executables, etc.)I specifically chose to ship
dist-esm
instead ofdist/cjs
anddist/esm
to avoid path resolution changes 🤷Refs: https://github.com/electron/forge/issues/2949 Refs: https://github.com/vercel/webpack-asset-relocator-loader/pull/168