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

can't resolve exports pattern startsWith wildcards #376

Closed
tjx666 opened this issue Apr 11, 2023 · 1 comment
Closed

can't resolve exports pattern startsWith wildcards #376

tjx666 opened this issue Apr 11, 2023 · 1 comment

Comments

@tjx666
Copy link

tjx666 commented Apr 11, 2023

package.json:

{
    "name": "commonjs",
    "exports": {
        "./*/c": "./dist/hello.js"
    }
}

test code:

const resolve = require('enhanced-resolve');

resolve(__dirname, 'commonjs/a/b/c', (err, result) => {
    console.log(result); // => undefined
});

expect:

the result should be: absolute/path/to/node_modules/commonjs/dist/hello.js

image

version:

enhanced-resolve: 5.12.0

@alexander-akait
Copy link
Member

Duplicate #352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants