Many projects make it easy to import JSON files using the import syntax, and while that's useful and has nice DX, there are cases where the JSON file is massive and importing it might have unintended side effects like big bundle size, slow builds and even memory leaks.
Having a warning when the file is too big would help catch these kinds of issues early.
Many projects make it easy to import JSON files using the
importsyntax, and while that's useful and has nice DX, there are cases where the JSON file is massive and importing it might have unintended side effects like big bundle size, slow builds and even memory leaks.Having a warning when the file is too big would help catch these kinds of issues early.