fix: Rspack not skip .d.ts file (#79285)
Next.js skips resolving `.d.ts` files. Rspack can achieve the same behavior by adding the `resolve.restrictions: [/^(?!.*\.d\.ts$).*$/]` configuration. Following test cases will be passed: - test/integration/typescript-paths/test/index.test.js - typescript paths default behavior should not resolve to .d.ts files - typescript paths without baseurl default behavior should not resolve to .d.ts files - test/integration/typescript-workspaces-paths/packages/www/test/index.test.js - TypeScript Features default behavior should not resolve to .d.ts files
Showing
Please
register
or
sign in
to comment