Skip to content

Commit c2661d7

Browse files
committed
update index with file specifier
1 parent 4328eae commit c2661d7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-icons/scripts/writeIcons.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function writeIcons(icons) {
126126
});
127127

128128
const esmIndexString = index
129-
.map(({ fname, jsName }) => `export { ${jsName}, ${jsName}Config } from './${fname}';`)
129+
.map(({ fname, jsName }) => `export { ${jsName}, ${jsName}Config } from './${fname}.js';`)
130130
.sort()
131131
.join('\n');
132132
outputFileSync(join(outDir, 'esm', 'icons/index.js'), esmIndexString);

packages/react-icons/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './icons/index';
1+
export * from './icons/index.js';

0 commit comments

Comments
 (0)