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

Correctly resolve wildcards in subpath imports #34

Open
JavaScriptBach opened this issue Oct 7, 2024 · 1 comment
Open

Correctly resolve wildcards in subpath imports #34

JavaScriptBach opened this issue Oct 7, 2024 · 1 comment

Comments

@JavaScriptBach
Copy link

See jestjs/jest#15250

@SimenB
Copy link
Contributor

SimenB commented Oct 14, 2024

Specifically jestjs/jest#15250 (comment)

const { imports } = require('resolve.exports');

const resolved = imports({
  'imports': {
    '#test/*.css': './src/*.css',
    '#test/*.ts': './src/*.ts',
  },
}, '#test/asdf/css.ts');

console.log(resolved);

Logs out [ './src/asdf.css' ] instead of ['./src/asdf/css.ts']

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