Repository navigation
Conversation
This resolves json5#240 and allows the following to work properly: ```js import { parse, stringify } from "json5"; ``` (Note that the *types* for `json5` already declared that this import was possible. However, trying to use the import like this resulted in a runtime error.) There are "better" ways to implement this, but some of the other simple options do not work: json5#240 (comment) This is a simple change that addresses the broken exports without refactoring the package structure.
lgarron
added a commit
to lgarron/naughty-list
that referenced
this pull request
Nov 5, 2025
This reverts commit bf5ca8f. See: json5/json5#364
|
I wouldn't hold your breath on getting this accepted. PRs have been languishing for a long time now. |
Member
|
Closed by #370 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This resolves #240 and allows the following to work properly:
(Note that the types for
json5already declared that this import was possible. However, trying to use the import like this resulted in a runtime error.)There are "better" ways to implement this, but some of the other simple options do not work: #240 (comment) This is a simple change that addresses the broken exports without refactoring the package structure.