skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.66k stars 208 forks source link

ES6 imports #197

Closed MartijnHarmenzon closed 1 year ago

MartijnHarmenzon commented 1 year ago

Hello all,

Can someone help me getting this tool to work using ES6 imports? Trying the following

import Graphre from 'graphre';
import nomnoml from 'nomnoml';

Would like to use it like this to combine with Astro.build.

skanaar commented 1 year ago

There is no published es module package unfortunately. Some environments can import CommonJS modules via the import x from y syntax, but I have no experience with Astro.build

MartijnHarmenzon commented 1 year ago

Thanks for the quick reply. Understood. I will close this issue.