Skip to content

chore: bump enhanced-resolve version #971

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

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"deepmerge": "4.2.2",
"dlv": "1.1.3",
"dset": "3.1.2",
"enhanced-resolve-301": "0.0.1",
"esbuild": "^0.20.2",
"enhanced-resolve": "^5.16.1",
"fast-glob": "3.2.4",
"find-up": "5.0.0",
"is-builtin-module": "3.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss-language-server/src/util/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ResolverFactory,
Resolver,
ResolveOptions,
} from 'enhanced-resolve-301'
} from 'enhanced-resolve'

export function createResolver(options: Partial<ResolveOptions> = {}): Resolver {
return ResolverFactory.createResolver({
Expand Down
3 changes: 1 addition & 2 deletions packages/tailwindcss-language-server/src/util/resolveFrom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ export default function resolveFrom(from?: string, id?: string): string {

let result = resolver.resolveSync({}, from, id)
if (result === false) throw Error()
// https://github.com/webpack/enhanced-resolve/issues/282
return result.replace(/\0#/g, '#')
return result
}