I want to introduce this JavaScript into my editor, but I haven’t found a method or entry point to do so. Can I introduce this JavaScript into the editor
We’ll soon be improving the workflow for this with full
ES Module support, but for now you can grab the source from here https://cdn.jsdelivr.net/npm/simplex-noise@4.0.1/dist/cjs/simplex-noise.js and copy it into your project as an asset.
Alternatively, if you’re happy with using a CDN, you can import the code directly at runtime using “import(‘ https://cdn.jsdelivr.net/npm/simplex-noise@4.0.1/+esm’)”
1 Like