File tree Expand file tree Collapse file tree 3 files changed +82
-112
lines changed Expand file tree Collapse file tree 3 files changed +82
-112
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ module.exports = {
1010 getTransform : function ( ) {
1111 return {
1212 name : 'custom-element' ,
13- plugin : class {
14- transform ( ast ) {
15- this . syntax . traverse ( ast , {
16- ElementNode : ( node ) => {
13+ plugin : function ( env ) {
14+ return {
15+ name : 'custom-element' ,
16+ visitor : {
17+ ElementNode : function ( node ) {
1718 if ( node . tag === 'CustomElement' ) {
1819 node . attributes = node . attributes
1920 // completely remove these ones, they are not used runtime
@@ -45,9 +46,8 @@ module.exports = {
4546 } ) ;
4647 }
4748 } ,
48- } ) ;
49- return ast ;
50- }
49+ } ,
50+ } ;
5151 } ,
5252 baseDir : function ( ) {
5353 return __dirname ;
Original file line number Diff line number Diff line change 118118 "ember-cli-sass" : " ^11.0.1" ,
119119 "ember-cli-sri" : " ^2.1.1" ,
120120 "ember-cli-string-helpers" : " ^6.1.0" ,
121- "ember-cli-template-lint" : " ^2.0.1" ,
122121 "ember-cli-terser" : " ^4.0.2" ,
123122 "ember-cli-yadda" : " ^0.7.0" ,
124123 "ember-collection" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments