From b46679179a27567f902f3bba78a4189c955dd141 Mon Sep 17 00:00:00 2001 From: Angelo Ashmore Date: Thu, 1 Jul 2021 16:03:07 -1000 Subject: [PATCH] fix: use production over development for optimization checks --- src/SliceZone.tsx | 2 +- src/{dev.ts => buildOptimizations.ts} | 0 src/lib/invariant.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{dev.ts => buildOptimizations.ts} (100%) diff --git a/src/SliceZone.tsx b/src/SliceZone.tsx index a5a1b9a..426203f 100644 --- a/src/SliceZone.tsx +++ b/src/SliceZone.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import * as prismicT from "@prismicio/types"; -import { __PRODUCTION__ } from "./dev"; +import { __PRODUCTION__ } from "./buildOptimizations"; /** * The minimum required properties to represent a Prismic Slice for the `` component. diff --git a/src/dev.ts b/src/buildOptimizations.ts similarity index 100% rename from src/dev.ts rename to src/buildOptimizations.ts diff --git a/src/lib/invariant.ts b/src/lib/invariant.ts index f77bb01..b4ef39b 100644 --- a/src/lib/invariant.ts +++ b/src/lib/invariant.ts @@ -22,7 +22,7 @@ * SOFTWARE. */ -import { __PRODUCTION__ } from "../dev"; +import { __PRODUCTION__ } from "../buildOptimizations"; const prefix = "Invariant failed";