Skip to content

Commit

Permalink
v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Dec 15, 2024
1 parent 9ee88a8 commit 7e3e6ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog


## 1.0.5

- lexer: Support reexport extends
```js
var foo = require("foo");
foo.bar = true;
module.exports = foo;
// outputed named exports: [ "bar", ...(foo.namedExports) ]
```
- lexer: Support `var foo = exports; foo.bar = true` pattern
- lexer: Support `var foo = exports.foo = ...` pattern
- lexer: Support `(function(){ ... }).call(this)` IIFE expr (normally generated by coffeescript)
- native: Support json module
- native: Fix resolver `PackagePathNotExported` error

## 1.0.4

- native: Improve module resolver
Expand Down
2 changes: 1 addition & 1 deletion wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@esm.sh/cjs-module-lexer",
"description": "A lexer for detecting the `module.exports` of a CJS module.",
"version": "1.0.4",
"version": "1.0.5",
"type": "module",
"main": "index.mjs",
"scripts": {
Expand Down

0 comments on commit 7e3e6ec

Please sign in to comment.