mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 18:55:27 +08:00
923b51ad25
This adds a new `loaderShim()` function to ensure certain modules are present in the `loader.js` registry and therefore runtime `require()`-able. Currently, the classic build pipeline puts a lot of things in the runtime `loader.js` registry automatically. For example, all of the ember-auto-import packages are in there. Going forward, and especially as we switch to the Embroider build pipeline, this will not be guarenteed. We need to keep an eye on what modules (packages) our "external" bundles (admin, wizard, markdown-it, plugins, etc) are expecting to be present and put them into the registry proactively. |
||
---|---|---|
.. | ||
helpers.rb | ||
shims.js | ||
vendor-shims.js |