Skip to content

Commit

Permalink
Added blog link
Browse files Browse the repository at this point in the history
  • Loading branch information
subbu963 committed Feb 22, 2023
1 parent 6bc562d commit 0cc7e50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
But, there are a few features that CommonJS supports but ESM doesnt like [these](https://nodejs.org/api/esm.html#differences-between-es-modules-and-commonjs).
It becomes a pain to migrate each of these features to a ESM compatible feature and its a lot of manual work. This polyfill tries to support those commonly used and feasible features in ES modules.

Also, i have a detailed it in my blog [here](https://lordofthethings.xyz/how-to-fix-referenceerror-__dirname/__filename/require-is-not-defined-in-es-module-scope/).

## Available polyfills

- [x] \_\_filename
Expand Down

0 comments on commit 0cc7e50

Please sign in to comment.