-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clean up render exports from external module (#394)
- Loading branch information
Showing
15 changed files
with
78 additions
and
46 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
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
20 changes: 0 additions & 20 deletions
20
crates/rolldown/tests/fixtures/.export_external/artifacts.snap
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
crates/rolldown/tests/fixtures/.export_external/test.config.json
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
crates/rolldown/tests/fixtures/.import_external/artifacts.snap
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
crates/rolldown/tests/fixtures/.import_external/test.config.json
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
crates/rolldown/tests/fixtures/external/export_external/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,30 @@ | ||
--- | ||
source: crates/rolldown/tests/common/case.rs | ||
expression: content | ||
input_file: crates/rolldown/tests/fixtures/export_external | ||
--- | ||
# Assets | ||
|
||
## main.mjs | ||
|
||
```js | ||
import * as ext1 from "external"; | ||
import * as ext from "external"; | ||
import { a, a as a$1, a as a1, b, b as b$1, b as b1 } from "external"; | ||
// foo.js | ||
const a1$1 = 1; | ||
console.log(a1$1); | ||
// main.js | ||
console.log(ext, a1, b1, ext1, a, b) | ||
export { a$1 as a, b$1 as b }; | ||
``` |
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
...n/tests/fixtures/.export_external/main.js → ...fixtures/external/export_external/main.js
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import * as ext from 'external' | ||
import { a, b } from 'external' | ||
import { a1, b1, ext1 } from './foo' | ||
console.log(ext, a1, b1, ext1, a, b) | ||
console.log(ext, a1, b1, ext1, a, b) | ||
|
||
export { a, b } from 'external' |
9 changes: 9 additions & 0 deletions
9
crates/rolldown/tests/fixtures/external/export_external/test.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,9 @@ | ||
{ | ||
"input": { | ||
"external": [ | ||
"external" | ||
], | ||
"treeshake": false | ||
}, | ||
"expectExecuted": false | ||
} |
24 changes: 24 additions & 0 deletions
24
crates/rolldown/tests/fixtures/external/import_external/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,24 @@ | ||
--- | ||
source: crates/rolldown/tests/common/case.rs | ||
expression: content | ||
input_file: crates/rolldown/tests/fixtures/external/import_external | ||
--- | ||
# Assets | ||
|
||
## main.mjs | ||
|
||
```js | ||
import * as ext$1 from "external"; | ||
import * as ext from "external"; | ||
import { a, a as a$1, b, b as b$1 } from "external"; | ||
// foo.js | ||
console.log(ext$1, a$1, b$1) | ||
// main.js | ||
console.log(ext, a, b) | ||
``` |
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
crates/rolldown/tests/fixtures/external/import_external/test.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,9 @@ | ||
{ | ||
"input": { | ||
"external": [ | ||
"external" | ||
], | ||
"treeshake": false | ||
}, | ||
"expectExecuted": false | ||
} |