Open Diablohu opened 3 years ago
some notes
import(fileUrl).then(mod => mod.default)
import { glob, globSync } from 'glob'
import { osLocale } from 'os-locale'
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
更新方式 https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Packages
create-koot-app
koot
koot-webpack
koot-cli
koot-electron
koot-qiankun
根层代码库
camelcase
v7chalk
v5inquirer
v9koot
chalk
v5execa
v6inquirer
v9is-port-reachable
v4ora
v6os-locale
v6koot-cli
chalk
v5latest-version
v7npm-email
v4ora
v6os-locale
v6package-json
v8判断项目类型决定,如果是 ESM 添加
package.json
正则替换
^[a-zA-Z]+[ ]*(.+?)[ ]*=[ ]*require\((.+?)\)
->import $1 from $2
其他问题
__filename