Skip to content

Commit

Permalink
fix: import bug in server (next.js/remix/bun) (#653)
Browse files Browse the repository at this point in the history
* fix: import bug in server component(next.js/remix)

* fix: add exports to package.json
  • Loading branch information
afc163 authored Jul 21, 2024
1 parent 8c40da6 commit 67c7ca8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"devDependencies": {
"lerna": "^3.4.0"
},
"license": "MIT"
"license": "MIT",
"repository": "git@github.com:ant-design/ant-design-icons.git"
}
6 changes: 0 additions & 6 deletions packages/icons-react/.fatherrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ import { defineConfig } from 'father';
const config = defineConfig({
// Locked version only supports 1.0.0
plugins: ['@rc-component/father-plugin'],
cjs: {
transformer: 'swc',
targets: {
ie: 11,
},
},
});

if (process.env.NODE_ENV !== 'ci') {
Expand Down
4 changes: 4 additions & 0 deletions packages/icons-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"main": "./lib/index.js",
"unpkg": "./dist/index.umd.js",
"module": "./es/index.js",
"exports": {
"import": "./es/index.js",
"require": "./lib/index.js"
},
"typings": "./lib/index.d.ts",
"scripts": {
"ci": "NODE_ENV=ci npm run prepublishOnly",
Expand Down
4 changes: 1 addition & 3 deletions packages/icons-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ export * from './icons';
export * from './components/twoTonePrimaryColor';
export { default as createFromIconfontCN } from './components/IconFont';
export { default } from './components/Icon';

const IconProvider = Context.Provider;
export { IconProvider };
export const IconProvider = Context.Provider;

0 comments on commit 67c7ca8

Please sign in to comment.