Skip to content

Commit

Permalink
feat: enable tree shaking optimization (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
xbrave committed Aug 23, 2022
1 parent 186e4bb commit 6c1b047
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "2.2.0",
"description": "react-component",
"repository": "https://github.com/DTStack/dt-react-component",
"sideEffects": [
"lib/*",
"esm/**/style/*",
"lib/**/style/*",
"*.scss"
],
"main": "lib/index.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/components/goBack/goBack.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Icon } from 'antd/lib'
import { Icon } from 'antd'
import { browserHistory, hashHistory } from 'react-router'
import { GoBackProps } from './index'

Expand Down

0 comments on commit 6c1b047

Please sign in to comment.