How to use the ember-resolver/ember-config function in ember-resolver

To help you get started, we’ve selected a few ember-resolver 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 izelnakri / mber / ember-app-boilerplate / src / resolver.js View on Github external
import Resolver from 'ember-resolver/resolvers/fallback';
import buildResolverConfig from 'ember-resolver/ember-config';
import config from '../config/environment';

let moduleConfig = buildResolverConfig(config.modulePrefix);

/*
 * If your application has custom types and collections, modify moduleConfig here
 * to add support for them.
 */

 moduleConfig.types = Object.assign({}, moduleConfig.types, { // NOTE: needed fast fastboot!
   ajax: { definitiveCollection: 'main' },
   mixin: { definitiveCollection: 'main' }
 });

export default Resolver.extend({
  config: moduleConfig
});
github NullVoxPopuli / react-vs-ember / state-management / ember / src / resolver.js View on Github external
import Resolver from 'ember-resolver/resolvers/fallback';
// import Resolver from 'ember-resolver/resolvers/glimmer-wrapper';

import { merge } from '@ember/polyfills';

import buildResolverConfig from 'ember-resolver/ember-config';
import config from '../config/environment';

let moduleConfig = buildResolverConfig(config.modulePrefix);
/*
 * If your application has custom types and collections, modify moduleConfig here
 * to add support for them.
 */

merge(moduleConfig.types, {
  config: { definitiveCollection: 'main' },
  mixin: { definitiveCollection: 'main' },
  util: { definitiveCollection: 'utils' },
});

moduleConfig.collections.main.types.push('config');

export default Resolver.extend({
  config: moduleConfig,
});
github emberjs / ember-module-unification-blueprint / files / src / resolver.js View on Github external
import Resolver from 'ember-resolver/resolvers/glimmer-wrapper';
import buildResolverConfig from 'ember-resolver/ember-config';
import config from '../config/environment';

let moduleConfig = buildResolverConfig(config.modulePrefix);
/*
 * If your application has custom types and collections, modify moduleConfig here
 * to add support for them.
 */

export default Resolver.extend({
  config: moduleConfig
});
github NullVoxPopuli / react-vs-ember / IndyTechTalks / presentation / src / resolver.js View on Github external
import Resolver from 'ember-resolver/resolvers/fallback';
import buildResolverConfig from 'ember-resolver/ember-config';
import config from '../config/environment';

let moduleConfig = buildResolverConfig(config.modulePrefix);
/*
 * If your application has custom types and collections, modify moduleConfig here
 * to add support for them.
 */

moduleConfig.types = Object.assign(moduleConfig.types, {
  config: { definitiveCollection: 'main' },
  'component-manager': { definitiveCollection: 'main' }
});

export default Resolver.extend({
  config: moduleConfig
});

ember-resolver

The default modules based resolver for Ember CLI.

MIT
Latest version published 2 days ago

Package Health Score

83 / 100
Full package analysis

Similar packages