Skip to content

Commit 83dc5ca

Browse files
committed
Update test refs
1 parent 4668df9 commit 83dc5ca

File tree

1 file changed

+18
-45
lines changed
  • turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/dce

1 file changed

+18
-45
lines changed

turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/dce/output.md

+18-45
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,29 @@ graph TD
8080
# Final
8181
```mermaid
8282
graph TD
83-
N0["Items: [ItemId(0, ImportOfModule)]"];
83+
N0["Items: [ItemId(0, ImportOfModule), ItemId(1, Normal), ItemId(ModuleEvaluation)]"];
8484
N1["Items: [ItemId(0, ImportBinding(0))]"];
85-
N2["Items: [ItemId(1, Normal), ItemId(ModuleEvaluation)]"];
86-
N2 --> N0;
87-
N2 --> N1;
88-
N1 --> N0;
85+
N0 --> N1;
8986
```
9087
# Entrypoints
9188

9289
```
9390
{
94-
ModuleEvaluation: 2,
95-
Exports: 3,
91+
ModuleEvaluation: 0,
92+
Exports: 2,
9693
}
9794
```
9895

9996

10097
# Modules (dev)
10198
## Part 0
10299
```js
100+
import { baz } from './module';
103101
import './module';
102+
if (1 + 1 == 3) {
103+
baz();
104+
}
105+
"module evaluation";
104106

105107
```
106108
## Part 1
@@ -116,29 +118,12 @@ export { baz as a } from "__TURBOPACK_VAR__" assert {
116118
```
117119
## Part 2
118120
```js
119-
import "__TURBOPACK_PART__" assert {
120-
__turbopack_part__: 0
121-
};
122-
import { baz } from './module';
123-
import "__TURBOPACK_PART__" assert {
124-
__turbopack_part__: 0
125-
};
126-
if (1 + 1 == 3) {
127-
baz();
128-
}
129-
"module evaluation";
130-
131-
```
132-
## Part 3
133-
```js
134121

135122
```
136123
## Merged (module eval)
137124
```js
138-
import "__TURBOPACK_PART__" assert {
139-
__turbopack_part__: 0
140-
};
141125
import { baz } from './module';
126+
import './module';
142127
if (1 + 1 == 3) {
143128
baz();
144129
}
@@ -149,16 +134,21 @@ if (1 + 1 == 3) {
149134

150135
```
151136
{
152-
ModuleEvaluation: 2,
153-
Exports: 3,
137+
ModuleEvaluation: 0,
138+
Exports: 2,
154139
}
155140
```
156141

157142

158143
# Modules (prod)
159144
## Part 0
160145
```js
146+
import { baz } from './module';
161147
import './module';
148+
if (1 + 1 == 3) {
149+
baz();
150+
}
151+
"module evaluation";
162152

163153
```
164154
## Part 1
@@ -174,29 +164,12 @@ export { baz as a } from "__TURBOPACK_VAR__" assert {
174164
```
175165
## Part 2
176166
```js
177-
import "__TURBOPACK_PART__" assert {
178-
__turbopack_part__: 0
179-
};
180-
import { baz } from './module';
181-
import "__TURBOPACK_PART__" assert {
182-
__turbopack_part__: 0
183-
};
184-
if (1 + 1 == 3) {
185-
baz();
186-
}
187-
"module evaluation";
188-
189-
```
190-
## Part 3
191-
```js
192167

193168
```
194169
## Merged (module eval)
195170
```js
196-
import "__TURBOPACK_PART__" assert {
197-
__turbopack_part__: 0
198-
};
199171
import { baz } from './module';
172+
import './module';
200173
if (1 + 1 == 3) {
201174
baz();
202175
}

0 commit comments

Comments
 (0)