diff --git a/packages/loader/index.cjs b/packages/loader/index.cjs index eab55a2da..f70efe021 100644 --- a/packages/loader/index.cjs +++ b/packages/loader/index.cjs @@ -1,10 +1,8 @@ /** * @typedef {import('webpack').LoaderContext} LoaderContext + * @typedef {import('./lib/index.js', {with: {'resolution-mode': 'import'}}).Options} Options */ -// @ts-expect-error: TS complains about CJS importing ESM but it works. -/** @typedef {import('./lib/index.js').Options} Options */ - 'use strict' // Note: we can’t export immediately, as TS generates broken types.