Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
50cd334f
Commit
50cd334f
authored
Aug 14, 2018
by
sorrycc
Committed by
陈帅
Aug 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polyfill with umi-plugin-react
parent
c20ddf8d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
13 deletions
+1
-13
config/config.js
config/config.js
+1
-0
src/global.js
src/global.js
+0
-1
src/polyfill.js
src/polyfill.js
+0
-12
No files found.
config/config.js
View file @
50cd334f
...
@@ -20,6 +20,7 @@ export default {
...
@@ -20,6 +20,7 @@ export default {
default
:
'
zh-CN
'
,
// default zh-CN
default
:
'
zh-CN
'
,
// default zh-CN
baseNavigator
:
true
,
// default true, when it is true, will use `navigator.language` overwrite default
baseNavigator
:
true
,
// default true, when it is true, will use `navigator.language` overwrite default
},
},
polyfills
:
[
'
ie9
'
],
...(
...(
require
(
'
os
'
).
platform
()
===
'
darwin
'
require
(
'
os
'
).
platform
()
===
'
darwin
'
?
{
?
{
...
...
src/global.js
deleted
100644 → 0
View file @
c20ddf8d
import
'
./polyfill
'
;
src/polyfill.js
deleted
100644 → 0
View file @
c20ddf8d
import
'
@babel/polyfill
'
;
import
'
url-polyfill
'
;
import
setprototypeof
from
'
setprototypeof
'
;
// React depends on set/map/requestAnimationFrame
// https://reactjs.org/docs/javascript-environment-requirements.html
// import 'core-js/es6/set';
// import 'core-js/es6/map';
// import 'raf/polyfill'; 只兼容到IE10不需要,况且fetch的polyfill whatwg-fetch也只兼容到IE10
// https://github.com/umijs/umi/issues/413
Object
.
setPrototypeOf
=
setprototypeof
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment