Skip to content

Commit f63a481

Browse files
authoredSep 9, 2024··
feat(es/common): Introduce pure Span and BytePos to handle #__PURE__ (#9539)
**Related issue:** - #9538
1 parent 12488da commit f63a481

File tree

190 files changed

+962
-2180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+962
-2180
lines changed
 

‎.changeset/serious-houses-help.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
swc_common: minor
3+
---
4+
5+
feat(es/common): Introduce pure Span and BytePos to handle `#__PURE__`

‎crates/swc/src/builder.rs

-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
215215
),
216216
Optional::new(
217217
compat::es2022::es2022(
218-
comments,
219218
compat::es2022::Config {
220219
class_properties: compat::es2022::class_properties::Config {
221220
private_as_properties: assumptions.private_fields_as_properties,
@@ -271,7 +270,6 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
271270
ignore_function_length: assumptions.ignore_function_length
272271
},
273272
},
274-
comments,
275273
self.unresolved_mark
276274
),
277275
should_enable(self.target, EsVersion::Es2017)

0 commit comments

Comments
 (0)
Please sign in to comment.