You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Certain .json files I need to handle the export a different way than the one provided by default
// .json{"json": "1"}// I need to output to: exportdefaultJSON.parse(`{"json":"1"}`)
Describe the solution you'd like
Allow passing specific json config to exclude certain files or to exclude the json plugin completely.
Describe alternatives you've considered
Tried use enforce: 'pre' but without success.
Additional context
When you don't need to convert the json into esm import (#1459), a simple JSON.parse(json) is enough and more performant
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Certain
.json
files I need to handle the export a different way than the one provided by defaultDescribe the solution you'd like
Allow passing specific json config to exclude certain files or to exclude the json plugin completely.
Describe alternatives you've considered
Tried use
enforce: 'pre'
but without success.Additional context
When you don't need to convert the json into esm import (#1459), a simple
JSON.parse(json)
is enough and more performantThe text was updated successfully, but these errors were encountered: