Closed sabberworm closed 3 years ago
Can you try changing the order of dynamicImport: true,
and syntax: 'typescript'
?
`
I tried and it worked. Now I reverted the change and it still works. In any case, I did have some other problems in my config which I eventually ironed out so maybe they caused this. In that case it’d simply be a duplicate of #12…
I have configured swc-loader as follows:
Notice the
dynamicImport: true
. Yet running webpack yields an error where I use my dynamic import:Any other location I need to configure
dynamicImport: true
?