Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions {{cookiecutter.github_project_name}}/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { Widget } from '@phosphor/widgets';

import { IJupyterWidgetRegistry } from '@jupyter-widgets/base';

import * as widgetExports from './widget';

import { MODULE_NAME, MODULE_VERSION } from './version';

const EXTENSION_ID = '{{ cookiecutter.npm_package_name }}:plugin';
Expand Down Expand Up @@ -37,6 +35,9 @@ function activateWidgetExtension(
registry.registerWidget({
name: MODULE_NAME,
version: MODULE_VERSION,
exports: widgetExports,
exports: async () => import(
/* webpackChunkName: "{{ cookiecutter.npm_package_name }}" */
'./widget'
),
});
}
2 changes: 1 addition & 1 deletion {{cookiecutter.github_project_name}}/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"declaration": true,
"esModuleInterop":true,
"lib": ["es2015", "dom"],
"module": "commonjs",
"module": "esnext",
"moduleResolution": "node",
"noEmitOnError": true,
"noUnusedLocals": true,
Expand Down