Skip to content
Permalink
Browse files

fix: Respect custom Ember module names. (#303)

  • Loading branch information...
amiller-gh committed Aug 2, 2019
1 parent fb0a7a0 commit 873207049cb4c228a8dc233462c66e9c65da7dd7
Showing with 5 additions and 4 deletions.
  1. +5 −4 packages/@css-blocks/ember-cli/index.js
@@ -38,10 +38,11 @@ module.exports = {
_owners: new Set(),

_modulePrefix() {
let parent = this.parent;
let config = typeof parent.config === "function" ? parent.config() || {} : {};
let name = typeof parent.name === "function" ? parent.name() : parent.name;
return parent.modulePrefix || config.modulePrefix || name || "";
const parent = this.parent;
const config = typeof parent.config === "function" ? parent.config() || {} : {};
const name = typeof parent.name === "function" ? parent.name() : parent.name;
const moduleName = typeof parent.moduleName === "function" ? parent.moduleName() : parent.moduleName;
return moduleName || parent.modulePrefix || config.modulePrefix || name || "";
},

// Shared AST plugin implementation for Glimmer and Ember.

0 comments on commit 8732070

Please sign in to comment.
You can’t perform that action at this time.