-
Would it be possible to wrap this using commonjs or the universal module definition (UMD) format, so it's easier to integrate into module systems such as CommonJS or AMD based ones?
-
After I implemented my modules, I also added assert.js and test.js, according to CommonJS/Unit Testing/1.0.
It provides a number of assert functions, such as assert(), assert.equal(), assert.deepEqual…
-
参考 [CommonJS规范](http://javascript.ruanyifeng.com/nodejs/module.html)
### 概述
- 所有代码都运行在模块作用域,不会污染全局作用域。
- 模块可以多次加载,但是只会在第一次加载时运行一次,然后运行结果就被缓存了,以后再加载,就直接读取缓存结果。要想让模块再次运行,必须清除缓存。
- 模块加载的顺序,按照其…
-
Hi!
Until recently, I was using this shim to run Backfire with CommonJS support: https://github.com/cloud-walker/client-backfire
Unfortunately, the project has been deprecated. Any option to have Co…
-
It would be preferable if we could use npm to install third party dependencies instead of our custom methods. Using the guide I found [here](https://code.lengstorf.com/learn-rollup-js/), we could easi…
-
[ERR_REQUIRE_ESM]: require() of ES Module /node_modules/point-in-polygon-hao/dist/pointInPolygon.mjs not supported.
--
Instead change the require of node_modules/point-in-polygon-hao/dist/pointInP…
-
## Vercel is bugging with cheerio
Hello. I tried to create an express app and push it to Vercel but it keeps having issue starting app.
```Javascript
const cheerio = require('cheerio');
```
…
-
It's still tricky to make Node execute TS with esm imports.
## Feature Suggestion
Add cjs output in the build.
-
Related to https://github.com/microsoft/TypeScript/issues/45813
using the import syntax with mixpanel and typescript 4.4+ fails
```
import { disable, init } from "mixpanel-browser";
init("my…
-
I'm using commonJS modules in my project (until enough browsers support ``. It would be nice if the analyzer could understand CommonJS modules.
See #475 for more reasons why.