Last 12 weeks · 0 commits
2 of 6 standards met
…_PACKAGE_PATH_NOT_EXPORTED error fixes #26 The error ERR_PACKAGE_PATH_NOT_EXPORTED occurs because the estree-walker package does not have an appropriate export defined for CommonJS modules in its package.json file. By adding to the exports field, you explicitly define the entry point for CommonJS modules, which resolves the issue.
resolves https://github.com/Rich-Harris/estree-walker/issues/41 It can be useful to skip a node while walking an AST, yet still invoke the callback for cleanup logic. In Nuxt, for example, we use alongside a scope tracker that requires the callback to be triggered in order to track the scopes properly. This PR adds the ability to skip a node while still calling the callback. I'm open to suggestions regarding the API. I was also considering making it call by default, but that would obviously be a breaking change. Should we go in that direction, or keep the current behavior as the default? Should I add this functionality for node removal as well? I can imagine the situation might be similar.
Repository: Rich-Harris/estree-walker. Description: Traverse an ESTree-compliant AST Stars: 423, Forks: 36. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 4, open issues: 5. Last activity: 9mo ago. Community health: 42%. Top contributors: Rich-Harris, kristoferbaxter, ChristianMurphy, Conduitry, mrkishi, tanhauhau, AndrewLeedham, benmccann, TrySound, forivall and others.