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';
7
7
8
8
import { IJupyterWidgetRegistry } from '@jupyter-widgets/base' ;
9
9
10
- import * as widgetExports from './widget' ;
11
-
12
10
import { MODULE_NAME , MODULE_VERSION } from './version' ;
13
11
14
12
const EXTENSION_ID = '{{ cookiecutter.npm_package_name }}:plugin' ;
@@ -37,6 +35,6 @@ function activateWidgetExtension(
37
35
registry . registerWidget ( {
38
36
name : MODULE_NAME ,
39
37
version : MODULE_VERSION ,
40
- exports : widgetExports ,
38
+ exports : async ( ) => import ( /* webpackChunkName: "{{ cookiecutter.npm_package_name }}" */ './widget' ) ,
41
39
} ) ;
42
40
}
Original file line number Diff line number Diff line change 3
3
"declaration" : true ,
4
4
"esModuleInterop" :true ,
5
5
"lib" : [" es2015" , " dom" ],
6
- "module" : " commonjs " ,
6
+ "module" : " esnext " ,
7
7
"moduleResolution" : " node" ,
8
8
"noEmitOnError" : true ,
9
9
"noUnusedLocals" : true ,
You can’t perform that action at this time.
0 commit comments