You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maintainer of ts-loader here. I'm just writing up the migration of ts-loader to be built / run it's test packs against webpack 5 on my blog: johnnyreilly/blog.johnnyreilly.com#35
One thing that happened as part of the migration was that we started using the TypeScript types that webpack ships with as of v5. This has been great! However, we did find one omission in the form of the LoaderContext which is typed as any:
Hey all!
Maintainer of
ts-loader
here. I'm just writing up the migration ofts-loader
to be built / run it's test packs against webpack 5 on my blog: johnnyreilly/blog.johnnyreilly.com#35One thing that happened as part of the migration was that we started using the TypeScript types that webpack ships with as of v5. This has been great! However, we did find one omission in the form of the
LoaderContext
which is typed asany
:webpack/lib/NormalModule.js
Line 424 in 03961f3
Is this intentional? Or would it be possible for this to become strongly typed in future as well?
Looking at this:
webpack/lib/NormalModule.js
Line 593 in 03961f3
It would seem the type is something like this:
Related PR: TypeStrong/ts-loader#1251
The text was updated successfully, but these errors were encountered: