-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): make sure
Semantic
up-to-date after transforming (#1531)
<!-- Thank you for contributing! --> ### Description <!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
- Loading branch information
Showing
9 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...n/tests/fixtures/module_types/ts/enum_reference_id_not_exist_after_transform/_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"config": { | ||
"input": [{ | ||
"name": "main_ts", | ||
"import": "main.ts" | ||
}] | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...tests/fixtures/module_types/ts/enum_reference_id_not_exist_after_transform/artifacts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
source: crates/rolldown/tests/common/case.rs | ||
expression: content | ||
input_file: crates/rolldown/tests/fixtures/module_types/ts/reference_id_not_exist_after_transform | ||
--- | ||
# Assets | ||
|
||
## main_ts.mjs | ||
|
||
```js | ||
//#region main.ts | ||
var LexerState = function(LexerState$1) { | ||
LexerState$1[LexerState$1['inParens'] = 0] = 'inParens'; | ||
LexerState$1[LexerState$1['inSingleQuoteString'] = 1] = 'inSingleQuoteString'; | ||
LexerState$1[LexerState$1['inDoubleQuoteString'] = 2] = 'inDoubleQuoteString'; | ||
return LexerState$1; | ||
}(LexerState || {}); | ||
//#endregion | ||
``` |
5 changes: 5 additions & 0 deletions
5
...lldown/tests/fixtures/module_types/ts/enum_reference_id_not_exist_after_transform/main.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
enum LexerState { | ||
inParens, | ||
inSingleQuoteString, | ||
inDoubleQuoteString, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters