You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@egoist@c4software
after i changed example/index.js to the following, npx webpack run failed.
// import template from 'https://unpkg.com/lodash-es/template'asyncfunctiontestLogAsyncImport(){const{default: template}=awaitimport('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' }))
The text was updated successfully, but these errors were encountered:
@egoist @c4software
after i changed
example/index.js
to the following,npx webpack
run failed.the error message
The text was updated successfully, but these errors were encountered: