-
Notifications
You must be signed in to change notification settings - Fork 2
FAQ
Vue's SFC compiler runs in Nodejs environment, I have not figured out how to run it inside the browser.
Their toolchains run in Nodejs environment, I have not figured out how to run them inside the browser.
Dumber Gist does not write the bundle file to disk, it instead creates a virtual file in the memory of a Service Worker in browser. The service worker not only avoided disk IO, but also avoided the latency between the browser and the backend dev server.
Furthermore, because Dumber Gist doesn't allow user to change dumber bundler config, it can do very aggressive caching. In contrast, when you run dumber in Nodejs, the bundler is much more conservative on caching, as you could change bundler config which alters the tracing result.
Safari prevents cross-origin iframe from accessing indexedDB (where Dumber Gist saves local cache). When inside a Safari iframe, Dumber Gist runs purely from remote cache, those remote fetches slow down the bundling. This effect is more obvious on those frameworks (Aurelia, and Aurelia 2 dev) which is distributed as a group of packages/files (they are not an issue for a local project as SSD is fast).
Aurelia 2 will update distribution to one dist file per npm package before the production release.
You can turn on Safari menu
Develop
->Disable Cross-Origin restrictions
to lift the restriction. But it is not recommended to permanently disable this Safari protection.