Explorar o código

eslint skip undef of magic __webpack* in dev_mode bootstrap

Nicholas Bollweg %!s(int64=4) %!d(string=hai) anos
pai
achega
f4417054c2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
 }