File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
{{cookiecutter.github_project_name}} Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import { Widget } from '@phosphor/widgets';
77
88import { IJupyterWidgetRegistry } from '@jupyter-widgets/base' ;
99
10- import * as widgetExports from './widget' ;
11-
1210import { MODULE_NAME , MODULE_VERSION } from './version' ;
1311
1412const EXTENSION_ID = '{{ cookiecutter.npm_package_name }}:plugin' ;
@@ -37,6 +35,6 @@ function activateWidgetExtension(
3735 registry . registerWidget ( {
3836 name : MODULE_NAME ,
3937 version : MODULE_VERSION ,
40- exports : widgetExports ,
38+ exports : async ( ) => import ( /* webpackChunkName: "{{ cookiecutter.npm_package_name }}" */ './widget' ) ,
4139 } ) ;
4240}
Original file line number Diff line number Diff line change 33 "declaration" : true ,
44 "esModuleInterop" :true ,
55 "lib" : [" es2015" , " dom" ],
6- "module" : " commonjs " ,
6+ "module" : " esnext " ,
77 "moduleResolution" : " node" ,
88 "noEmitOnError" : true ,
99 "noUnusedLocals" : true ,
You can’t perform that action at this time.
0 commit comments