webpack-contrib / postcss-loader

PostCSS loader for webpack
MIT License
2.86k stars 211 forks source link

fix: duplicate init typescriptLoader #641

Closed Vrainy closed 1 year ago

Vrainy commented 1 year ago

This PR contains a:

Motivation / Use-Case

Breaking Changes

Additional Info

Each time the typescriptLoader is executed, ts-node will execute registerExtension() once.

Multiple executions of the typescriptLoader will get require.extensions[ext] = wrapper(wrapper(wrapper(wrapper(wrapper(... wrapper(originalHandler))))). ts-node source code

This will cause the out of memory when require.extensions[ext] is executed. #638

linux-foundation-easycla[bot] commented 1 year ago

CLA Signed

The committers listed above are authorized under a signed CLA.