Skip to content

Commit cd131ee

Browse files
committed
failing test for #19695
1 parent bc5f904 commit cd131ee

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

playground/dynamic-import/nested/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,14 @@ import(`../nested/nested/${base}.js`).then((mod) => {
184184
},
185185
},
186186
]
187+
const { log: bar } = await import('./treeshaken/syntax.js').then((mod) => mod.bar)
187188
default1()
188189
default2()
189190
other()
190191
foo()
191192
foo2()
192193
obj[1].lazy()
194+
bar()
193195
})()
194196

195197
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)