From b46c6bec881a5a9998d3578cd5978ce5c0979758 Mon Sep 17 00:00:00 2001 From: MiniPear Date: Tue, 16 May 2023 09:56:41 +0800 Subject: [PATCH] fix(link): right env var --- 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: {