From 5cb74fc6f1e4bb47b1c1f990c8cad370ccb142a4 Mon Sep 17 00:00:00 2001 From: Jacob Ebey <jacob.ebey@live.com> Date: Wed, 13 Oct 2021 10:02:30 -0700 Subject: [PATCH] fix: remove "*.json" module definition (#314) --- CHANGES.md | 4 ++++ packages/remix-dev/modules.ts | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c90a7ac6bec..0a9d6ff098b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,10 @@ ## Unreleased +### Improvements + +- Removed `*.json` module type to allow TS to auto-type `.json` imports + ### Breaking Changes - Several users felt that the `remix dev` command did not behave as expected. The CLI command `remix dev` has been changed to `remix watch`, and `remix run` has been changed to `remix dev` to hopefully make the CLI a bit more intuitive. Please note that `remix dev` requires that `@remix-run/serve` is installed as a dependency, just as `remix run` did before. diff --git a/packages/remix-dev/modules.ts b/packages/remix-dev/modules.ts index de33c7d73d3..a373d27bb51 100644 --- a/packages/remix-dev/modules.ts +++ b/packages/remix-dev/modules.ts @@ -26,10 +26,6 @@ declare module "*.jpg" { const asset: string; export default asset; } -declare module "*.json" { - const asset: string; - export default asset; -} declare module "*.md" { import type { ComponentType as MdComponentType } from "react"; export const attributes: any;