【文件属性】:
文件名称:esm-iso:同构ESM加载程序
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-13 03:00:12
JavaScript
esm-iso
同构JS模块的伴侣。
node -r esm -r esm-iso server.js
例子
试用其进行。
摘要在这里说明:
import path from 'path' ;
import express from 'express' ;
// used to redirect client calls
const redirect = Object . assign (
Object . create ( null ) ,
{
// import * from '/m/generic';
// =>
// import * from '/m/detailed/path/esm/index.js';
'generic' : 'detailed/path/esm/index.js'
}
) ;
const app = exp
【文件预览】:
esm-iso-master
----package.json(508B)
----LICENSE(765B)
----index.js(212B)
----README.md(1KB)