esbuild-jest
esbuild-jest copied to clipboard
Strict mode?
We have a unit test which passes when using ts-jest
and fails when using esbuild-jest
. The difference is that esbuild does not enable strict mode ("use strict"
) by default, whereas tsc
does (when alwaysStrict
is set to true
).
Failing test: https://github.com/foxglove/rosbag/pull/14
Esbuild does not handle this automatically, but supports it via the banner feature: https://github.com/evanw/esbuild/issues/422#issuecomment-739740602
Would you consider enabling "use strict"
by default when alwaysStrict
is enabled, to match ts-jest behavior?