瀏覽代碼

eslint skip undef of magic __webpack* in dev_mode bootstrap

Nicholas Bollweg 4 年之前
父節點
當前提交
f4417054c2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dev_mode/bootstrap.js

+ 2 - 0
dev_mode/bootstrap.js

@@ -75,9 +75,11 @@ async function loadComponent(url, scope) {
   await loadScript(url);
 
   // From https://webpack.js.org/concepts/module-federation/#dynamic-remote-containers
+  // eslint-disable-next-line no-undef
   await __webpack_init_sharing__('default');
   const container = window._JUPYTERLAB[scope];
   // Initialize the container, it may provide shared modules and may need ours
+  // eslint-disable-next-line no-undef
   await container.init(__webpack_share_scopes__.default);
 }