The editor42 package, imported like any other dependency and bundled with your app.
editor42
This editor was imported as a module: import editor42 from 'editor42'. No script tag, no global setup — your bundler treats it like any other package.
import editor42 from 'editor42'
The one thing a bundler cannot do for you is guess where the editor's own files live, because it rewrites your code into a hashed bundle somewhere else. That is what base_url is for: it points at the folder holding skins/, icons/, themes/, models/ and plugins/.
base_url
skins/
icons/
themes/
models/
plugins/