Browse Source
perf: Remove IE11 from browserslist and babel targets (#38779)
* Update package.json
* chore: bump antd-tools
* Update package.json
* fix: browserslist in codesandbox
* chore: upgrade antd tools
* chore: upgrade antd tools
* test: fix Cannot access mockCanUseDom before initialization
* upgrade @ant-design/tools
* upgrade @ant-design/tools
* upgrade @ant-design/tools
* upgrade @ant-design/tools
* Update package.json
Co-authored-by: 二货机器人 <smith3816@gmail.com>
pull/39800/head
afc163
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
7 additions and
10 deletions
-
.dumi/theme/builtins/Previewer/index.tsx
-
components/config-provider/__tests__/theme.test.tsx
-
components/mentions/index.tsx
-
package.json
|
@ -323,7 +323,7 @@ createRoot(document.getElementById('container')).render(<Demo />); |
|
|
test: 'react-scripts test --env=jsdom', |
|
|
test: 'react-scripts test --env=jsdom', |
|
|
eject: 'react-scripts eject', |
|
|
eject: 'react-scripts eject', |
|
|
}, |
|
|
}, |
|
|
browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'], |
|
|
browserslist: ['>0.2%', 'not dead'], |
|
|
}; |
|
|
}; |
|
|
const codesanboxPrefillConfig = { |
|
|
const codesanboxPrefillConfig = { |
|
|
files: { |
|
|
files: { |
|
|
|
@ -10,7 +10,8 @@ import { resetWarned } from '../../_util/warning'; |
|
|
|
|
|
|
|
|
const { defaultAlgorithm, darkAlgorithm, compactAlgorithm } = theme; |
|
|
const { defaultAlgorithm, darkAlgorithm, compactAlgorithm } = theme; |
|
|
|
|
|
|
|
|
let mockCanUseDom = true; |
|
|
// eslint-disable-next-line no-var
|
|
|
|
|
|
var mockCanUseDom = true; |
|
|
|
|
|
|
|
|
jest.mock('rc-util/lib/Dom/canUseDom', () => () => mockCanUseDom); |
|
|
jest.mock('rc-util/lib/Dom/canUseDom', () => () => mockCanUseDom); |
|
|
|
|
|
|
|
|
|
@ -27,9 +27,7 @@ function loadingFilterOption() { |
|
|
|
|
|
|
|
|
export type MentionPlacement = 'top' | 'bottom'; |
|
|
export type MentionPlacement = 'top' | 'bottom'; |
|
|
|
|
|
|
|
|
export type { |
|
|
export type { DataDrivenOptionProps as MentionsOptionProps } from 'rc-mentions/lib/Mentions'; |
|
|
DataDrivenOptionProps as MentionsOptionProps, |
|
|
|
|
|
} from 'rc-mentions/lib/Mentions'; |
|
|
|
|
|
|
|
|
|
|
|
export interface OptionProps { |
|
|
export interface OptionProps { |
|
|
value: string; |
|
|
value: string; |
|
|
|
@ -104,9 +104,7 @@ |
|
|
"> 0.5%", |
|
|
"> 0.5%", |
|
|
"last 2 versions", |
|
|
"last 2 versions", |
|
|
"Firefox ESR", |
|
|
"Firefox ESR", |
|
|
"not dead", |
|
|
"not dead" |
|
|
"IE 11", |
|
|
|
|
|
"not IE 10" |
|
|
|
|
|
], |
|
|
], |
|
|
"dependencies": { |
|
|
"dependencies": { |
|
|
"@ant-design/colors": "^6.0.0", |
|
|
"@ant-design/colors": "^6.0.0", |
|
@ -158,7 +156,7 @@ |
|
|
"throttle-debounce": "^5.0.0" |
|
|
"throttle-debounce": "^5.0.0" |
|
|
}, |
|
|
}, |
|
|
"devDependencies": { |
|
|
"devDependencies": { |
|
|
"@ant-design/tools": "^16.1.0-alpha.2", |
|
|
"@ant-design/tools": "^17.0.0-alpha.5", |
|
|
"@babel/eslint-plugin": "^7.19.1", |
|
|
"@babel/eslint-plugin": "^7.19.1", |
|
|
"@emotion/babel-preset-css-prop": "^11.10.0", |
|
|
"@emotion/babel-preset-css-prop": "^11.10.0", |
|
|
"@emotion/css": "^11.10.5", |
|
|
"@emotion/css": "^11.10.5", |
|
|