Open
Description
@egoist @c4software
after i changed example/index.js
to the following, npx webpack
run failed.
// import template from 'https://unpkg.com/lodash-es/template'
async function testLogAsyncImport() {
const {
default: template
} = await import('https://unpkg.com/lodash-es/template')
console.log(template(`Hello <%= name %>`)({ name: 'EGOIST' }))
}
testLogAsyncImport()
the error message
ERROR in ./index.js 6:12
Module parse failed: Unexpected token (6:12)
You may need an appropriate loader to handle this file type.
| const {
| default: template
> } = await import('https://unpkg.com/lodash-es/template')
|
| console.log(template(`Hello <%= name %>`)({ name: 'EGOIST' }))
Metadata
Metadata
Assignees
Labels
No labels