Skip to content

Commit b285727

Browse files
mrkevVilém Jeniš
authored andcommitted
Update dependencies in examples/draft-0-10-0/playground (facebookarchive#2258)
Summary: This fixes security vulnerabilities detected by github Pull Request resolved: facebookarchive#2258 Test Plan: Used the example. Everything still works as intended. Differential Revision: D18690749 Pulled By: mrkev fbshipit-source-id: 7fd6930023c2baf4ebb66605ca8a96679f94a21a
1 parent b50a35c commit b285727

File tree

4 files changed

+5644
-3463
lines changed

4 files changed

+5644
-3463
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SKIP_PREFLIGHT_CHECK=true

examples/draft-0-10-0/playground/package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,29 @@
88
"draft-js": "file:../../..",
99
"immutable": "^3.8.2",
1010
"react": "^16.2.0",
11+
"react-app-polyfill": "^1.0.4",
1112
"react-codemirror2": "^3.0.7",
1213
"react-dom": "^16.2.0",
1314
"react-json-tree": "^0.11.0",
1415
"react-panelgroup": "^1.0.5",
15-
"react-scripts": "^1.1.5"
16+
"react-scripts": "3.2.0"
1617
},
1718
"scripts": {
1819
"start": "react-scripts start",
1920
"build": "react-scripts build",
2021
"test": "react-scripts test --env=jsdom",
2122
"eject": "react-scripts eject"
23+
},
24+
"browserslist": {
25+
"production": [
26+
">0.2%",
27+
"not dead",
28+
"not op_mini all"
29+
],
30+
"development": [
31+
"last 1 chrome version",
32+
"last 1 firefox version",
33+
"last 1 safari version"
34+
]
2235
}
2336
}

examples/draft-0-10-0/playground/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1313
*/
1414

15+
import 'react-app-polyfill/ie9'; // For IE 9-11 support
16+
1517
import GkManager from './GkManager';
1618
import React from 'react';
1719
import ReactDOM from 'react-dom';

0 commit comments

Comments
 (0)