Closed nico-martin closed 3 years ago
sorry I was working on this already. Please have a look at what I did. (The files that are generated + package.json main section) to see if you think that it makes sense. I'd rather now have the demo js file in another file, since I want it to be as easy as possible to understand.
Would love to hear your feedback.
To fix the tests I had to do some refactoring:
index.js
has to be a es6 module (import/export). That's why I created aui.js
with the JavaScript for the ui that imports theindex.js
. I then had to change the esbuild so it builds a "browser-compatible" version (no import/export) Now the tests can import theindex.js
and run as expected.