Skip to content

Commit

Permalink
fix: bump enhanced-resolve for upstream fix
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
llllvvuu committed Feb 14, 2024
1 parent 8d22df1 commit 87792ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/tailwindcss-language-server/ThirdPartyNotices.txt
Expand Up @@ -614,7 +614,7 @@ THE SOFTWARE.

================================================================================

enhanced-resolve-301@0.0.1
enhanced-resolve@5.15.0

Copyright JS Foundation and other contributors

Expand Down Expand Up @@ -1212,4 +1212,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
2 changes: 1 addition & 1 deletion packages/tailwindcss-language-server/package.json
Expand Up @@ -51,7 +51,7 @@
"deepmerge": "4.2.2",
"dlv": "1.1.3",
"dset": "3.1.2",
"enhanced-resolve-301": "0.0.1",
"enhanced-resolve": "^5.15.0",
"esbuild": "^0.19.5",
"fast-glob": "3.2.4",
"find-up": "5.0.0",
Expand Down
@@ -1,5 +1,5 @@
import * as fs from 'fs'
import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve-301'
import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve'
import { equal } from 'tailwindcss-language-service/src/util/array'

let pnpApi: any
Expand Down

0 comments on commit 87792ca

Please sign in to comment.