2
0
Эх сурвалжийг харах

Moved regenerator runtime to top import

jnfrati 4 жил өмнө
parent
commit
67dcae5749

+ 3 - 3
dashboard/src/index.tsx

@@ -1,10 +1,10 @@
+import "core-js/stable";
+import "regenerator-runtime/runtime";
+
 import * as React from "react";
 import * as React from "react";
 import * as ReactDOM from "react-dom";
 import * as ReactDOM from "react-dom";
 import App from "./App";
 import App from "./App";
 
 
-import "core-js/stable";
-import "regenerator-runtime/runtime";
-
 declare global {
 declare global {
   interface Window {
   interface Window {
     analytics: any;
     analytics: any;

+ 1 - 1
dashboard/webpack.config.js

@@ -25,7 +25,7 @@ module.exports = () => {
    * @type {webpack.Configuration}
    * @type {webpack.Configuration}
    */
    */
   const config = {
   const config = {
-    entry: ["regenerator-runtime/runtime.js", "./src/index.tsx"],
+    entry: ["./src/index.tsx"],
     target: "web",
     target: "web",
     mode: isDevelopment ? "development" : "production",
     mode: isDevelopment ? "development" : "production",
     module: {
     module: {