瀏覽代碼

Simplify externals

Jason Grout 8 年之前
父節點
當前提交
5625072e5c
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 1 3
      jupyterlab/webpack.config.js
  2. 3 3
      scripts/externals.js

+ 1 - 3
jupyterlab/webpack.config.js

@@ -100,9 +100,7 @@ module.exports = [
   ],
   bail: true,
   devtool: 'source-map',
-  externals: externals.BASE_EXTERNALS.concat([
-    helpers.createShimHandler('jupyter-js-services')
-  ])
+  externals: externals.EXTERNALS
 },
 // CodeMirror bundle
 {

+ 3 - 3
scripts/externals.js

@@ -4,7 +4,8 @@
 var helpers = require('./extension_helpers');
 
 /**
- * The base Webpack `externals` config.
+ * The externals provided to libraries
+ * this package builds (like jupyter-js-widgets).
  */
 var BASE_EXTERNALS = [
   {
@@ -28,8 +29,7 @@ var BASE_EXTERNALS = [
 
 
 /**
- * The base Webpack `externals` config that should be applied to extensions of
- * JupyterLab.
+ * The externals that this package provides.
  */
 var EXTERNALS = BASE_EXTERNALS.concat([
   helpers.createShimHandler('jupyter-js-services')