瀏覽代碼

Clean up handling of es6 promise

Steven Silvester 8 年之前
父節點
當前提交
66f7333253
共有 2 個文件被更改,包括 2 次插入7 次删除
  1. 1 1
      jupyterlab/package.json
  2. 1 6
      jupyterlab/src/main.ts

+ 1 - 1
jupyterlab/package.json

@@ -35,7 +35,7 @@
     "@jupyterlab/shortcuts-extension": "^0.1.1",
     "@jupyterlab/terminal-extension": "^0.1.1",
     "@jupyterlab/tooltip-extension": "^0.1.1",
-    "es6-promise": "^3.1.2",
+    "es6-promise": "^4.0.5",
     "font-awesome": "^4.6.3"
   },
   "devDependencies": {

+ 1 - 6
jupyterlab/src/main.ts

@@ -1,9 +1,7 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
-import {
-  polyfill
-}  from 'es6-promise';
+import 'es6-promise/auto';  // polyfill Promise on IE
 
 import {
   JupyterLab, ModuleLoader
@@ -88,9 +86,6 @@ import 'font-awesome/css/font-awesome.min.css';
 import '@jupyterlab/default-theme/style/index.css';
 
 
-polyfill();
-
-
 /* tslint:disable */
 const mods: JupyterLab.IPluginModule[] = [
 aboutExtension,