Skip to content

Commit

Permalink
ensure default from internal modules are exported in the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard committed Aug 11, 2020
1 parent efb23f9 commit 9852177
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/component/mxgraph/shape/render/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@
*/
export * from './BpmnCanvas';
export * from './IconPainter';
// TODO default seems not exported in js
import IconPainter from './IconPainter';
export { IconPainter };

export * from './render-types';
12 changes: 10 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@
* limitations under the License.
*/

export * from './component/mxgraph/StyleUtils';
export * from './component/mxgraph/shape/render';
// TODO remove dedicated import/export
// this is currently needed, otherwise module default exports are not exported in bundle js
import BpmnVisualization from './component/BpmnVisualization';
import IconPainter from './component/mxgraph/shape/render/IconPainter';
import StyleConfigurator from './component/mxgraph/config/StyleConfigurator';

export { BpmnVisualization };
export { IconPainter };
export { StyleConfigurator };

export * from './component/mxgraph/StyleUtils';
export * from './component/mxgraph/shape/render';
// TODO restore 'alias export' to avoid any name clash with the demo code, when esLint parsing error is fixed: "Parsing error: Cannot read property 'map' of undefined"
// bug: https://github.com/typescript-eslint/typescript-eslint/issues/1653
// enhancement: https://github.com/typescript-eslint/typescript-eslint/issues/1436
Expand Down

0 comments on commit 9852177

Please sign in to comment.