Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export map fallback #9

Merged
merged 3 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
node_modules/

.npmignore
dist
dist
/legacy.js
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.6.12

PINNED: [email protected]

### Patch Changes

Earlier, neotraverse/legacy did not work with WebPack 4, as it does not support export maps. Now this package provides direct fallback for CJS.

## 0.6.11

PINNED: [email protected]
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "neotraverse",
"version": "0.6.11",
"version": "0.6.12",
"description": "traverse and transform objects by visiting every node on a recursive walk",
"main": "dist/legacy/legacy.cjs",
"type": "module",
"types": "dist/index.d.ts",
"files": [
"dist"
"dist",
"legacy.js"
],
"exports": {
".": {
Expand Down Expand Up @@ -41,7 +42,7 @@
"./package.json": "./package.json"
},
"scripts": {
"compile": "tsup",
"compile": "tsup && cp dist/legacy/legacy.cjs legacy.js",
"test": "vitest run"
},
"repository": {
Expand Down