Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
});
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,
});
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
});
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
});