-
## The devDependency [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs) was updated from `9.1.8` to `9.2.0`.
🚨 [View failing branch](https://github.com/Belphemur/torrent-api-…
-
```
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/lacymorrow/repo/gridamp-next/node_modules/d3-time-format/src/index.js from /Users/lacymorrow/repo/gridamp-next/node_modules/react-charts/lib…
-
As soon as Hardhat supports ESM in TS: https://github.com/NomicFoundation/hardhat/issues/3385
wdyt @lucas-janon @andresaiello?
-
### Validations
- [X] Follow our [Code of Conduct](https://github.com/eslint-stylistic/eslint-stylistic/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://eslint.style/contr…
-
module-alias is working fine with my commonjs project, once it migrated to use esm it stopped working
minimal repos:
[commonjs version](https://stackblitz.com/edit/node-42hfdu?file=package.json)
…
-
Maybe this question would fit better in the GH Discussions than the issue tab, but since GH Discussions is not enabled on this repo I created the issue here.
In the documentation is only an explana…
-
Given that oak can be transpiled to js, is it:
1. Possible,
2. Desirable given the goals of the project
to allow interop with js libraries?
(Sorry if this is the wrong place to put this - if…
-
这个知识点以前重来没有注意到
它们有两个重大差异。
CommonJS 模块输出的是一个值的拷贝,ES6 模块输出的是值的引用。
CommonJS 模块是运行时加载,ES6 模块是编译时输出接口。
第二个差异是因为 CommonJS 加载的是一个对象(即module.exports属性),该对象只有在脚本运行完才会生成。而 ES6 模块不是对象,它的对外接口只是一种静态定义,在代码静态解…
-
在文章中这样一段代码:
lib.js
```js
// lib.js
let counter = 3
function incCounter() {
counter++
}
module.exports = {
counter,
incCounter
}
````
index.js
```js
// index.js
const mod = requir…
-
能提供一个commonjs的版本么,或者做下兼容。