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