@@ -50,15 +50,6 @@ module.exports = class ModulesPreprocessor {
5050 let inputRoot = this . owner . belongsToAddon ( )
5151 ? this . owner . getParentAddonTree ( )
5252 : this . owner . app . trees . app ;
53- let outputRoot = this . owner . belongsToAddon ( )
54- ? this . owner . getAddonModulesRoot ( )
55- : '' ;
56-
57- if ( outputRoot ) {
58- inputRoot = new Funnel ( inputRoot , {
59- destDir : outputRoot ,
60- } ) ;
61- }
6253
6354 // If moduleName is defined, that should override the parent's name.
6455 // Otherwise, the template and generated module will disagree as to what the path should be.
@@ -71,17 +62,14 @@ module.exports = class ModulesPreprocessor {
7162
7263 let modulesSources = new ModuleSourceFunnel ( inputRoot , modulesInput , {
7364 include : [ '**/*.' + this . owner . getFileExtension ( ) ] ,
74- outputRoot,
7565 parentName : ownerName ,
7666 } ) ;
7767
7868 let modulesTree = new ( require ( 'broccoli-css-modules' ) ) ( modulesSources , {
7969 extension : this . owner . getFileExtension ( ) ,
8070 plugins : this . getPostcssPlugins ( ) ,
8171 enableSourceMaps : this . owner . enableSourceMaps ( ) ,
82- sourceMapBaseDir : this . owner . belongsToAddon ( )
83- ? this . owner . getAddonModulesRoot ( )
84- : '' ,
72+ sourceMapBaseDir : '' ,
8573 postcssOptions : this . owner . getPostcssOptions ( ) ,
8674 virtualModules : this . owner . getVirtualModules ( ) ,
8775 generateScopedName : this . scopedNameGenerator ( ) ,
@@ -217,7 +205,6 @@ module.exports = class ModulesPreprocessor {
217205 defaultExtension : this . owner . getFileExtension ( ) ,
218206 ownerName : this . _ownerName ,
219207 parentName : this . _parentName ,
220- addonModulesRoot : this . owner . getAddonModulesRoot ( ) ,
221208 root : ensurePosixPath ( this . _modulesTree . inputPaths [ 0 ] ) ,
222209 parent : this . owner . getParent ( ) ,
223210 ui : this . owner . ui ,
@@ -236,7 +223,6 @@ class ModuleSourceFunnel extends Funnel {
236223 constructor ( input , stylesTree , options ) {
237224 super ( [ input , stylesTree ] , options ) ;
238225 this . parentName = options . parentName ;
239- this . destDir = options . outputRoot ;
240226 this . inputHasParentName = null ;
241227 }
242228
0 commit comments