Skip to content

Commit 4328eae

Browse files
committed
fix(icons): update internal import specifier
1 parent ceee225 commit 4328eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-icons/scripts/writeIcons.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports["default"] = exports.${jsName};
3636
const writeESMExport = (fname, jsName, icon, rhUiIcon = null) => {
3737
outputFileSync(
3838
join(outDir, 'esm/icons', `${fname}.js`),
39-
`import { createIcon } from '../createIcon';
39+
`import { createIcon } from '../createIcon.js';
4040
4141
export const ${jsName}Config = {
4242
name: '${jsName}',
@@ -53,7 +53,7 @@ export default ${jsName};
5353

5454
const writeDTSExport = (fname, jsName, icon, rhUiIcon = null) => {
5555
const text = `import { ComponentClass } from 'react';
56-
import { SVGIconProps } from '../createIcon';
56+
import { SVGIconProps } from '../createIcon.js';
5757
export declare const ${jsName}Config: {
5858
name: '${jsName}',
5959
icon: ${JSON.stringify(icon)},

0 commit comments

Comments
 (0)