Browse Source

eslint skip undef of magic __webpack* in dev_mode bootstrap

Nicholas Bollweg 4 years ago
parent
commit
f4417054c2
1 changed files with 2 additions and 0 deletions
  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);
 }