Open NoeyNoi opened 2 years ago
import createLoadRemoteModule, { createRequires } from '@paciolan/remote-module-loader'
const dependencies = { vue: require('vue') }
const requires = createRequires(dependencies) export default createLoadRemoteModule({ requires })
使用时: ReferenceError: e is not defined, 原因是vue依赖未加载
ReferenceError: e is not defined
import createLoadRemoteModule, { createRequires } from '@paciolan/remote-module-loader'
const dependencies = { vue: require('vue') }
const requires = createRequires(dependencies) export default createLoadRemoteModule({ requires })
使用时:
ReferenceError: e is not defined
, 原因是vue依赖未加载