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'),