Skip to content

Commit 19e339e

Browse files
authored
fix: Handle default exports correctly for moduleResolution: 'node' (#1784)
1 parent eade8d9 commit 19e339e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/next-intl/config.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Needed for projects with `moduleResolution: 'node'`
22
import config from './dist/types/config';
33

4-
export = config;
4+
export default config;

packages/next-intl/middleware.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Needed for projects with `moduleResolution: 'node'`
22
import createMiddleware from './dist/types/middleware';
33

4-
export = createMiddleware;
4+
export default createMiddleware;

packages/next-intl/plugin.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Needed for projects with `moduleResolution: 'node'`
22
import plugin from './dist/types/plugin';
33

4-
export = plugin;
4+
export default plugin;

0 commit comments

Comments
 (0)