Skip to content

Commit b049635

Browse files
committed
failing test for vitejs#19695
1 parent 35ee848 commit b049635

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

playground/dynamic-import/nested/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,16 @@ import(`../nested/nested/${base}.js`).then((mod) => {
184184
},
185185
},
186186
]
187+
const { log: bar } = await import('./treeshaken/syntax.js').then(
188+
(mod) => mod.bar,
189+
)
187190
default1()
188191
default2()
189192
other()
190193
foo()
191194
foo2()
192195
obj[1].lazy()
196+
bar()
193197
})()
194198

195199
import(`../nested/static.js`).then((mod) => {
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
export const foo = () => {
22
console.log('treeshaken syntax foo')
33
}
4+
export const bar = {
5+
log: () => {
6+
console.log('treeshaken syntax bar')
7+
},
8+
}
49
export default () => {
510
console.log('treeshaken syntax default')
611
}

0 commit comments

Comments
 (0)