Skip to content

Commit 404646f

Browse files
authored
Merge pull request #257 from salsify/dont-assume-outputpath
2 parents e68f0ec + e61ab55 commit 404646f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ember-css-modules/lib/modules-preprocessor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ function formatJS(classMapping) {
228228

229229
class ModuleSourceFunnel extends Funnel {
230230
constructor(input, stylesTree, options) {
231-
super(input, options);
232-
this.stylesTree = stylesTree;
231+
super([input, stylesTree], options);
233232
this.parentName = options.parentName;
234233
this.destDir = options.outputRoot;
235234
this.inputHasParentName = null;
@@ -248,8 +247,9 @@ class ModuleSourceFunnel extends Funnel {
248247
`${this.inputPaths[0]}/${this.parentName}`
249248
);
250249

250+
let stylesTreePath = this.inputPaths[1];
251251
let stylesTreeHasParentName = fs.existsSync(
252-
`${this.stylesTree.outputPath}/${this.parentName}`
252+
`${stylesTreePath}/${this.parentName}`
253253
);
254254
if (stylesTreeHasParentName && !this.inputHasParentName) {
255255
this.destDir += `/${this.parentName}`;

0 commit comments

Comments
 (0)