Explorar o código

HUE-9090 [frontend] Replace deprecated polyfill lib

Johan Ahlen %!s(int64=6) %!d(string=hai) anos
pai
achega
930220bcf7

+ 2 - 1
desktop/core/src/desktop/js/hue.js

@@ -15,7 +15,8 @@
 // limitations under the License.
 
 import 'utils/publicPath';
-import '@babel/polyfill';
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
 import _ from 'lodash';
 import $ from 'jquery/jquery.common';
 import 'ext/bootstrap.2.3.2.min';

+ 2 - 1
desktop/core/src/desktop/js/sql/sqlLocationWebWorker.js

@@ -14,7 +14,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import '@babel/polyfill';
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
 import sqlParserRepository from 'parse/sql/sqlParserRepository';
 
 const handleStatement = (statement, locations, autocompleteParser, active) => {

+ 2 - 1
desktop/core/src/desktop/js/sql/sqlSyntaxWebWorker.js

@@ -14,7 +14,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import '@babel/polyfill';
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
 import sqlParserRepository from 'parse/sql/sqlParserRepository';
 
 /**