@lvce-editor/import-script
v1.1.0
Published
Dynamically import a module with helpful error messages in case the import fails
Downloads
1
Readme
import-script
Dynamically import a module with helpful error messages in case the import fails.
Install
npm install @lvce-editor/import-script
Usage
import { importScript } from '@lvce-editor/importScript'
const otherFunction = () => {
throw new Error(`oops`)
}
const module = await import('./not-found.js')
//
//