From 1d580c64764e8e2582d63ca9bdfd43b529d76dd2 Mon Sep 17 00:00:00 2001 From: Maxwell Barvian Date: Wed, 23 Oct 2024 03:57:41 -0700 Subject: [PATCH] Remove unneeded esm-env dep from /react --- packages/number-flow/vite.config.mjs | 2 +- packages/react/package.json | 1 - pnpm-lock.yaml | 8 -------- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/number-flow/vite.config.mjs b/packages/number-flow/vite.config.mjs index 51d8476a..626313fc 100644 --- a/packages/number-flow/vite.config.mjs +++ b/packages/number-flow/vite.config.mjs @@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => ({ fileName: 'index' }, rollupOptions: { - external: ['esm-env'], + external: [], plugins: [ typescript({ tsconfig: resolve(__dirname, `./tsconfig${mode === 'production' ? '.build' : ''}.json`) diff --git a/packages/react/package.json b/packages/react/package.json index e4739203..819330b6 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -54,7 +54,6 @@ "prepublishOnly": "pnpm build && pnpm test" }, "dependencies": { - "esm-env": "^1.0.0", "number-flow": "workspace:*" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 09abcb09..a0a2abb9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -65,9 +65,6 @@ importers: packages/react: dependencies: - esm-env: - specifier: ^1.0.0 - version: 1.0.0 number-flow: specifier: workspace:* version: link:../number-flow @@ -2417,9 +2414,6 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - esm-env@1.0.0: - resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==} - esprima@4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} @@ -6857,8 +6851,6 @@ snapshots: escape-string-regexp@5.0.0: {} - esm-env@1.0.0: {} - esprima@4.0.1: {} estree-util-attach-comments@3.0.0: