File tree 5 files changed +82
-295
lines changed
5 files changed +82
-295
lines changed Original file line number Diff line number Diff line change 7
7
" @babel/plugin-proposal-json-strings"
8
8
],
9
9
"presets" : [
10
- " @babel/preset-env" ,
10
+ [
11
+ " @babel/preset-env" ,
12
+ {
13
+ "useBuiltIns" : " entry" ,
14
+ "corejs" : " 3.12"
15
+ }
16
+ ],
11
17
" @babel/preset-react"
12
18
]
13
- }
19
+ }
Original file line number Diff line number Diff line change 1
- const sass = require ( 'node- sass' ) ;
1
+ const sass = require ( 'sass' ) ;
2
2
const fs = require ( 'fs' ) ;
3
3
const path = require ( 'path' ) ;
4
4
Original file line number Diff line number Diff line change 89
89
"chai-spies" : " ^1.0.0" ,
90
90
"commitizen" : " 2.9.6" ,
91
91
"concurrently" : " ^2.1.0" ,
92
+ "core-js" : " ^3.12.1" ,
92
93
"cpy-cli" : " ^3.1.1" ,
93
94
"cz-conventional-changelog" : " ^3.1.0" ,
94
95
"enzyme" : " ^2.3.0" ,
114
115
"mocha" : " ^8.1.3" ,
115
116
"mocha-each" : " ^2.0.1" ,
116
117
"mocha-jsdom" : " ^2.0.0" ,
117
- "node-sass" : " ^4.13.1" ,
118
118
"npm-run-all" : " ^4.1.5" ,
119
119
"postcss-nested" : " ^4.2.1" ,
120
120
"postcss-simple-vars" : " ^5.0.2" ,
132
132
"rollup-plugin-sass" : " ^1.2.2" ,
133
133
"rollup-plugin-stylelint" : " 1.0.0" ,
134
134
"rollup-plugin-url" : " ^3.0.1" ,
135
+ "sass" : " ^1.34.0" ,
135
136
"semantic-release" : " ^17.0.4" ,
136
137
"snazzy" : " ^2.0.1" ,
137
138
"standard" : " ^5.2.2" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ import { generateUUID } from './utils/uuid';
22
22
import baseCss from './index.scss' ;
23
23
import { generateTooltipStyle } from './decorators/styler' ;
24
24
25
+ /* Polyfill */
26
+ import 'core-js/modules/es.array.find' ;
27
+
25
28
@staticMethods
26
29
@windowListener
27
30
@customEvent
@@ -191,6 +194,7 @@ class ReactTooltip extends React.Component {
191
194
switch ( parentNode . constructor . name ) {
192
195
case 'Document' :
193
196
case 'HTMLDocument' :
197
+ case undefined :
194
198
domRoot = parentNode . head ;
195
199
break ;
196
200
case 'ShadowRoot' :
You can’t perform that action at this time.
0 commit comments