From 7b9d53061f1aed899b3fdbfdb214a5b1c38c7c0b Mon Sep 17 00:00:00 2001 From: MiniPear Date: Tue, 16 May 2023 10:09:20 +0800 Subject: [PATCH] fix(link): right env var (#5027) --- package.json | 2 +- vite.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b73a232e87..08cb15265f 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ ], "scripts": { "dev": "vite", - "dev:link": "cross-env LINK=true vite", + "dev:link": "cross-env LINK=1 vite", "clean": "rimraf lib esm dist", "lint-staged": "lint-staged", "size": "limit-size", diff --git a/vite.config.js b/vite.config.js index 9c376ac218..7e3299417f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'; import { deepMix } from '@antv/util'; const linkOptions = - process.env.LINK === true + process.env.LINK === '1' ? { server: { watch: {