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

fix: bump enhanced-resolve for upstream fix #907

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llllvvuu
Copy link

@llllvvuu llllvvuu commented Feb 14, 2024

EDIT: Sorry, I just noticed webpack/enhanced-resolve#301 still hasn't been merged. In that case there would be a need to rebase enhanced-resolve-301 instead of this.

This pulls in webpack/enhanced-resolve#353.

Otherwise, the following is broken (webpack/enhanced-resolve#352):

module.exports = require('@acme/ui/tailwind.config.cjs')

where @acme/ui has:

"exports": {
  "./*.cjs": "./*.cjs",
},

and requires the following workaround

"exports": {
  "./tailwind.config.cjs": "./tailwind.config.cjs",
  "./*.cjs": "./*.cjs",
},

Bumping the package fixes this. The tailwindcss-language-server code has a comment referencing webpack/enhanced-resolve#282, but that's been fixed upstream so I'm not sure if it's still a blocker for this.

Otherwise, the following is broken:
```javascript
module.exports = require('@acme/ui/tailwind.config.cjs')
```

where `@acme/ui` has:
```json
"exports": {
  "./*.cjs": "./*.cjs",
},
```

and requires the following workaround
```json
"exports": {
  "./tailwind.config.cjs": "./tailwind.config.cjs",
  "./*.cjs": "./*.cjs",
},
```

bumping the package fixes this.
@llllvvuu llllvvuu marked this pull request as draft February 14, 2024 10:07
@llllvvuu
Copy link
Author

Sorry, I just noticed webpack/enhanced-resolve#301 still hasn't been merged. In that case there would be a need to rebase enhanced-resolve-301 instead of this @bradlc .

@thecrypticace thecrypticace self-assigned this Feb 14, 2024
@thecrypticace
Copy link
Contributor

Hey, thanks for this — I'll take a look soon!

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

Successfully merging this pull request may close these issues.

None yet

2 participants