From a46d712bce8c1cd5fcba0cc1f55519f26385d7f3 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 8 Oct 2021 17:35:19 +0800 Subject: [PATCH] Revert "chore: adjust package entry file" (#9642) * fix: circular import * Revert "chore: adjust package entry file (#9455)" This reverts commit c3f08f4637cc07c5e464811feab6d641b7b4471f. --- packages/vant/package.json | 4 ++-- packages/vant/src/utils/interceptor.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/vant/package.json b/packages/vant/package.json index e6ed03797..0255a60e6 100644 --- a/packages/vant/package.json +++ b/packages/vant/package.json @@ -2,8 +2,8 @@ "name": "vant", "version": "3.2.4", "description": "Mobile UI Components built on Vue", - "main": "lib/vant.js", - "module": "lib/vant.es.js", + "main": "lib/index.js", + "module": "es/index.js", "style": "lib/index.css", "typings": "lib/index.d.ts", "files": [ diff --git a/packages/vant/src/utils/interceptor.ts b/packages/vant/src/utils/interceptor.ts index be79b952a..fae181301 100644 --- a/packages/vant/src/utils/interceptor.ts +++ b/packages/vant/src/utils/interceptor.ts @@ -1,4 +1,5 @@ -import { isPromise, noop } from '.'; +import { noop } from './basic'; +import { isPromise } from './validate'; export type Interceptor = (...args: any[]) => Promise | boolean;