How to use the ember-ast-hot-load/utils/cleaners.clearRequirejsCache function in ember-ast-hot-load

To help you get started, we’ve selected a few ember-ast-hot-load examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lifeart / ember-ast-hot-load / addon / services / hot-loader.js View on Github external
muNames.forEach((possibleMuName)=>{
      clearRequirejsCache(this, possibleMuName);
    });
    clearRequirejsCache(this, name);
github lifeart / ember-ast-hot-load / addon / services / hot-loader.js View on Github external
clearRequirejs(name) {
    const cacheKey = this.get('iterationId') + '/' + name;
    if (REQUIRE_CLEAR_CACHE.includes(cacheKey)) {
      return;
    }
    const muNames = this.getPossibleMUComponentNames(name);
    muNames.forEach((possibleMuName)=>{
      clearRequirejsCache(this, possibleMuName);
    });
    clearRequirejsCache(this, name);
    REQUIRE_CLEAR_CACHE.push(cacheKey);
  },
  addDynamicHelperWrapperComponent(name) {