|
1 | 1 | var path = require("path");
|
2 |
| -var version = require("../package.json").version; |
3 | 2 |
|
4 | 3 | // Custom webpack rules are generally the same for all webpack bundles, hence
|
5 | 4 | // stored in a separate local variable.
|
@@ -73,44 +72,6 @@ module.exports = [
|
73 | 72 | path: path.resolve(__dirname, "..", "..", "widget", "static"),
|
74 | 73 | libraryTarget: "amd",
|
75 | 74 | },
|
76 |
| - devtool: "source-map", |
77 |
| - module: { |
78 |
| - rules: rules, |
79 |
| - }, |
80 |
| - resolveLoader: { |
81 |
| - modules: ["../node_modules"], |
82 |
| - }, |
83 |
| - resolve: { |
84 |
| - modules: ["../node_modules"], |
85 |
| - extensions: extensions, |
86 |
| - }, |
87 |
| - externals: ["@jupyter-widgets/base"], |
88 |
| - }, |
89 |
| - { |
90 |
| - // Embeddable jupyter-captum-insights bundle |
91 |
| - // |
92 |
| - // This bundle is generally almost identical to the notebook bundle |
93 |
| - // containing the custom widget views and models. |
94 |
| - // |
95 |
| - // The only difference is in the configuration of the webpack public path |
96 |
| - // for the static assets. |
97 |
| - // |
98 |
| - // It will be automatically distributed by unpkg to work with the static |
99 |
| - // widget embedder. |
100 |
| - // |
101 |
| - // The target bundle is always `dist/index.js`, which is the path required |
102 |
| - // by the custom widget embedder. |
103 |
| - // |
104 |
| - mode: "production", |
105 |
| - entry: "./src/embed.js", |
106 |
| - output: { |
107 |
| - filename: "index.js", |
108 |
| - path: path.resolve(__dirname, "..", "..", "widget", "dist"), |
109 |
| - libraryTarget: "amd", |
110 |
| - publicPath: |
111 |
| - "https://unpkg.com/jupyter-captum-insights@" + version + "/dist/", |
112 |
| - }, |
113 |
| - devtool: "source-map", |
114 | 75 | module: {
|
115 | 76 | rules: rules,
|
116 | 77 | },
|
|
0 commit comments