Comments (4)
@scagood I see, let's change the logic and will be align with Node.js, just remove it our throw new Error(...)
, we are not linter (although we throw errors about some critical things), but Node.js don't do it, so we will do the same, do you want to send a PR?
from enhanced-resolve.
I am looking for a way to more closely mimic the nodejs resolution as in both eslint-community/eslint-plugin-n#182 and eslint-community/eslint-plugin-n#242 we have packages that don't correctly implement the exports order. However, they do resolve correctly when called in either import or require.
Can you provide an example, I want to investigate, thank you
from enhanced-resolve.
I sure can! I have tossed together a quick example :)
https://github.com/scagood/enhanced-resolve-repro
from enhanced-resolve.
🎉 Thank you @alexander-akait!
from enhanced-resolve.
Related Issues (20)
- is this possible with webpack AliasPlugin to automatically switch to a different alias when original file is deleted? HOT 7
- can't resolve exports pattern startsWith wildcards HOT 1
- Use of `extensionAlias` fails resolution of subpath exports in `exports` fields HOT 2
- resolving packages entrypoints with a non-standard node_modules HOT 4
- `exports.types` after `exports.default` HOT 5
- Hooks do not fire events from CSS/SCSS imports HOT 6
- AliasPlugin crash when file is deleted or rename (have to restart to make it work)
- Seeing "Error: No file content" for different package.json files when webpack rebuilds HOT 1
- ESM: Resolving to the wrong package with `exports` and nested same package but different versions HOT 3
- ESM: package.exports array target not conforming to the ESM specification HOT 10
- Add ability to handle win32 relative paths HOT 4
- [Feature Request]: Support resolve the modules with hard-links HOT 5
- lstat error when requiring virtual modules HOT 14
- Can i use withOptions Api ? HOT 1
- File Extension Substitution for TypeScript Support HOT 19
- pathUtils | joinCache memory leak HOT 6
- Question Regarding Restriction on "#/" in Imports Field Key HOT 3
- ExportsFieldPlugin is skipped when dependency is aliased HOT 4
- Feature Request: Support file urls HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enhanced-resolve.