From de076bf8f3739b13b243dde6587efd32ac8b3b35 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Fri, 28 Feb 2020 14:58:49 +0100 Subject: [PATCH] Fix embedded bundle Signed-off-by: martinRenou --- js/src/embed.js | 9 --------- js/src/index.js | 2 -- js/webpack.config.js | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 js/src/embed.js diff --git a/js/src/embed.js b/js/src/embed.js deleted file mode 100644 index 0baad282..00000000 --- a/js/src/embed.js +++ /dev/null @@ -1,9 +0,0 @@ -// Entry point for the unpkg bundle containing custom model definitions. -// -// It differs from the notebook bundle in that it does not need to define a -// dynamic baseURL for the static assets and may load some css that would -// already be loaded by the notebook otherwise. - -// Export widget models and views, and the npm package version number. -module.exports = require('./mpl_widget.js'); -module.exports['version'] = require('../package.json').version; diff --git a/js/src/index.js b/js/src/index.js index ab627aec..80b54eb7 100644 --- a/js/src/index.js +++ b/js/src/index.js @@ -1,6 +1,4 @@ - // Export widget models and views, and the npm package version number. export * from './toolbar_widget.js'; export * from './mpl_widget.js'; export { version } from '../package.json'; - diff --git a/js/webpack.config.js b/js/webpack.config.js index da2e7c67..735ee87a 100644 --- a/js/webpack.config.js +++ b/js/webpack.config.js @@ -63,7 +63,7 @@ module.exports = [ // The target bundle is always `dist/index.js`, which is the path required // by the custom widget embedder. // - entry: './src/embed.js', + entry: './src/index.js', output: { filename: 'index.js', path: path.resolve(__dirname, 'dist'),