Node 20 made significant changes to ESM loaders which are incompatible with this library, resulting in a crash. This will require an investigation and potential rewrite, but in the meantime it should not crash, so instead support for Node 20 was removed. This will cause the loader hook to not run, which will break the functionality but avoid the crash.
Since I had to move the code to a CJS file in order to add a condition based on the Node version, I also removed getSource and getFormat from versions where they are deprecated to avoid the warning.
Node 20 made significant changes to ESM loaders which are incompatible with this library, resulting in a crash. This will require an investigation and potential rewrite, but in the meantime it should not crash, so instead support for Node 20 was removed. This will cause the loader hook to not run, which will break the functionality but avoid the crash.
Since I had to move the code to a CJS file in order to add a condition based on the Node version, I also removed
getSource
andgetFormat
from versions where they are deprecated to avoid the warning.