@@ -48,7 +48,7 @@ module.exports = {
48
48
const appOptions = this . app && this . app . options ;
49
49
const addonOptions = parentOptions || appOptions || { } ;
50
50
51
- return addonOptions [ 'ember-template -imports' ] || {
51
+ return addonOptions [ 'ember-hbs -imports' ] || {
52
52
style : {
53
53
extension : 'scss' ,
54
54
plugins : {
@@ -91,15 +91,17 @@ module.exports = {
91
91
const VersionChecker = require ( 'ember-cli-version-checker' ) ;
92
92
const checker = new VersionChecker ( this ) ;
93
93
const ember = checker . for ( 'ember-source' ) ;
94
+ const addonOptions = this . _getAddonOptions ( ) ;
94
95
const options = {
95
- styleExtension : this . _getAddonOptions ( ) . style . extension ,
96
+ styleExtension : addonOptions . style . extension ,
96
97
root : path . join ( this . project . root , ...( isDummy ? [ 'tests' , 'dummy' ] : [ ] ) ) ,
97
98
failOnMissingImport : false ,
98
99
failOnBadImport : false ,
99
100
namespace : isDummy ? 'dummy' : name ,
100
101
imports : { } ,
101
102
useModifierHelperHelpers : ember . isAbove ( 'v3.27.0-beta.2' ) ,
102
103
useHelperWrapper : ! ember . isAbove ( 'v3.27.0-beta.2' ) ,
104
+ embroiderStatic : addonOptions . embroiderStatic ,
103
105
}
104
106
this . _getBabelOptions ( ) . plugins . splice ( 0 , 0 , [ require . resolve ( './lib/hbs-imports-babel-plugin' ) , options ] ) ;
105
107
this . _super . included . call ( this , arguments ) ;
@@ -139,7 +141,7 @@ module.exports = {
139
141
// eslint-disable-next-line @typescript-eslint/no-this-alias
140
142
const self = this ;
141
143
registry . add ( 'template' , {
142
- name : 'ember-template -imports' ,
144
+ name : 'ember-hbs -imports' ,
143
145
ext : 'hbs' ,
144
146
before : [ 'ember-cli-htmlbars' ] ,
145
147
toTree : ( tree ) => {
@@ -149,15 +151,17 @@ module.exports = {
149
151
const VersionChecker = require ( 'ember-cli-version-checker' ) ;
150
152
const checker = new VersionChecker ( this ) ;
151
153
const ember = checker . for ( 'ember-source' ) ;
154
+ const addonOptions = this . _getAddonOptions ( ) ;
152
155
const options = {
153
- styleExtension : this . _getAddonOptions ( ) . style . extension ,
156
+ styleExtension : addonOptions . style . extension ,
154
157
root : path . join ( this . project . root , ...( isDummy ? [ 'tests' , 'dummy' ] : [ ] ) ) ,
155
158
failOnMissingImport : false ,
156
159
failOnBadImport : false ,
157
160
namespace : isDummy ? 'dummy' : name ,
158
161
imports : this . imports ,
159
162
useModifierHelperHelpers : ember . isAbove ( 'v3.27.0-beta.2' ) ,
160
163
useHelperWrapper : ! ember . isAbove ( 'v3.27.0-beta.2' ) ,
164
+ embroiderStatic : addonOptions . embroiderStatic ,
161
165
}
162
166
tree = new TemplateImportProcessor ( tree , options ) ;
163
167
return tree ;
0 commit comments