1.1.0 • Published 3 months ago
@lvce-editor/import-script v1.1.0
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')
//
//