-
Would be awesome if we could use this with browserify. Or even better, add UMD support.
-
AMD CMD CommonJS是目前最常用的三种模块化书写规范。前端模块化就是把复杂的文件分成一个个独立的模块,比如JS文件,分成独立的模块后有利于代码的重用和维护,
但是这样又会引来模块与模块之间的相互依赖的问题,所有就有了这三种规范
CommonJS
CommonJS规范是诞生比较早的。NodeJS就采用了CommonJS,这样使用的:
```javascript
var cloc…
-
It's still tricky to make Node execute TS with esm imports.
## Feature Suggestion
Add cjs output in the build.
-
Do we really care about supporting CommonJS? I think we should still build for esm, so none typescript users can use the library.
If we do remove CommonJS support, then we can remove quite a bit of…
-
-
I had just made the change myself, and was forking the repo to create the PR, but then found the existing branch with commonJS support.
It seems to be pretty low-impact, code-wise--any chance of gett…
ghost updated
10 years ago
-
Please Support CommonJS
-
[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…
-
Thank you for publishing this helpful package.
This issue is similar to #85
When loading ESM workers, the following error is logged by node v23.2.0:
```
(node:404242) ExperimentalWarning: C…
-
Do you think it is preferable to switch over to Commonjs module code generation in combination with Webpack?
The main benefit I see is that dependencies are tracked through explicit imports within t…
cveld updated
8 years ago