Generated widgets don't make use of relevant default exports
sbinge opened this issue · 0 comments
sbinge commented
Enhancement
Widgets created via dojo create widget
don't import appropriate default exports as defaults, for exampleWidgetBase
.
Package Version: 5.0.0
dojo create widget --name MyComponentWidget --component
Expected behavior:
import { DNode } from '@dojo/framework/widget-core/interfaces';
import ThemedMixin, { theme } from '@dojo/framework/widget-core/mixins/Themed';
import WidgetBase from '@dojo/framework/widget-core/WidgetBase';
import customElement from '@dojo/framework/widget-core/decorators/customElement';
...
Actual behavior:
import { DNode } from '@dojo/framework/widget-core/interfaces';
import { ThemedMixin, theme } from '@dojo/framework/widget-core/mixins/Themed';
import { WidgetBase } from '@dojo/framework/widget-core/WidgetBase';
import { customElement } from '@dojo/framework/widget-core/decorators/customElement';
...