esbuild-jest icon indicating copy to clipboard operation
esbuild-jest copied to clipboard

Strict mode?

Open amacneil opened this issue 3 years ago • 0 comments

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?

amacneil avatar Jul 24 '21 16:07 amacneil