Skip to content

Commit

Permalink
fix: feature configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedshuhel committed Mar 3, 2016
1 parent d0e00de commit 8d5eaa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/framework-configuration.js
Expand Up @@ -176,8 +176,7 @@ export class FrameworkConfiguration {
* @return Returns the current FrameworkConfiguration instance.
*/
feature(plugin: string, config?: any): FrameworkConfiguration {
plugin = plugin.endsWith('.js') || plugin.endsWith('.ts') ? plugin.substring(0, plugin.length - 3) : plugin;
return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: plugin, config: config || {} });
return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
}

/**
Expand Down

0 comments on commit 8d5eaa1

Please sign in to comment.