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;