-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
Description
> Working with ES2021 does not seem to generate that ugly JS anymore, what do you think?
That is great! Once we move on with #1340 we can also remove the workflow described here
node-wot/packages/examples/README.md
Lines 14 to 29 in 5afa858
| ### Workflow | |
| 1. Run `npm run build` | |
| 2. Remove the following 3/4 lines in JS files of folder `dist/` | |
| ``` | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| require("wot-typescript-definitions"); | |
| let WoT; | |
| let WoTHelpers; | |
| ``` | |
| 3. Copy the according JS file(s) to | |
| - `<node-wot>/examples/scripts` | |
| - `<node-wot>/examples/testthing` |
Originally posted by @danielpeintner in #1215 (comment)