Commit 6efb478 1 parent 216fd6b commit 6efb478 Copy full SHA for 6efb478
File tree 2 files changed +1
-20
lines changed
2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,6 @@ class AstSerializer {
96
96
// controls whether the assets are aggregated
97
97
this . bundlerMode = false ;
98
98
99
- // controls whether @html , <template webc:type>, <* webc:is="template" webc:type> nodes are reprocessed
100
- this . reprocessingMode = true ;
101
-
102
99
// for error messaging
103
100
this . filePath = Path . normalizePath ( filePath ) ;
104
101
@@ -214,10 +211,6 @@ class AstSerializer {
214
211
setBundlerMode ( mode ) {
215
212
this . bundlerMode = ! ! mode ;
216
213
}
217
-
218
- setReprocessingMode ( mode ) {
219
- this . reprocessingMode = ! ! mode ;
220
- }
221
214
222
215
setAliases ( aliases = { } ) {
223
216
this . aliases = aliases ;
@@ -939,16 +932,12 @@ class AstSerializer {
939
932
* @private
940
933
*/
941
934
async compileString ( rawContent , node , slots , options ) {
942
- if ( ! this . reprocessingMode ) {
943
- return rawContent ;
944
- }
945
-
946
935
if ( typeof rawContent !== "string" ) {
947
936
rawContent = `${ rawContent } ` ;
948
937
}
949
938
950
939
// Short circuit if rawContent has no < for tags
951
- if ( ! rawContent . includes ( "<" ) || this . hasAttribute ( node , AstSerializer . attrs . RAW ) ) {
940
+ if ( this . hasAttribute ( node , AstSerializer . attrs . RAW ) || ! rawContent . includes ( "<" ) ) {
952
941
return rawContent ;
953
942
}
954
943
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ class WebC {
35
35
this . globalComponents = { } ;
36
36
this . astOptions = { } ;
37
37
this . bundlerMode = false ;
38
- this . reprocessingMode = true ;
39
38
this . ignores = options . ignores || [ ] ;
40
39
41
40
if ( input || input === "" ) {
@@ -204,7 +203,6 @@ class WebC {
204
203
205
204
let ast = new AstSerializer ( this . astOptions ) ;
206
205
ast . setBundlerMode ( this . bundlerMode ) ;
207
- ast . setReprocessingMode ( this . reprocessingMode ) ;
208
206
ast . setMode ( mode ) ;
209
207
ast . setContent ( content ) ;
210
208
ast . setData ( options . data ) ;
@@ -244,12 +242,6 @@ class WebC {
244
242
this . bundlerMode = ! ! mode ;
245
243
}
246
244
247
- // @deprecated , remove in 0.8.0
248
- // https://github.com/11ty/webc/issues/72
249
- setReprocessingMode ( mode ) {
250
- this . reprocessingMode = ! ! mode ;
251
- }
252
-
253
245
async stream ( options = { } ) {
254
246
let { ast, serializer } = await this . setup ( options ) ;
255
247
You can’t perform that action at this time.
0 commit comments