Skip to content

Canvas source code show library imports #42

@AlexanderSkrock

Description

@AlexanderSkrock

Is your feature request related to a problem? Please describe.
For stories that are embedded via Canvas components, it is possible to have a look on the underlying code. This is a good thing, but does not show the bpmn-react imports, but rather some ../../../lib/Viewer which prevents users from simply copy and pasting the code to try it out.

Describe the solution you'd like

Maybe it is possible that we modify the code on the fly and replace any local imports according the exports property in the package.json.

Describe alternatives you've considered

We could also manually write the code which is shown for each canvas, but this also needs to be kept up to date. I am already sure that either one is overseen or small mistakes like a typo will happen.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions