We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc5f904 commit cd131eeCopy full SHA for cd131ee
playground/dynamic-import/nested/index.js
@@ -184,12 +184,14 @@ import(`../nested/nested/${base}.js`).then((mod) => {
184
},
185
186
]
187
+ const { log: bar } = await import('./treeshaken/syntax.js').then((mod) => mod.bar)
188
default1()
189
default2()
190
other()
191
foo()
192
foo2()
193
obj[1].lazy()
194
+ bar()
195
})()
196
197
import(`../nested/static.js`).then((mod) => {
playground/dynamic-import/nested/treeshaken/syntax.js
@@ -1,6 +1,11 @@
1
export const foo = () => {
2
console.log('treeshaken syntax foo')
3
}
4
+export const bar = {
5
+ log: () => {
6
+ console.log('treeshaken syntax bar')
7
+ },
8
+}
9
export default () => {
10
console.log('treeshaken syntax default')
11
0 commit comments