diff --git a/plugins/vite-plugin-canyon/build.config.ts b/plugins/vite-plugin-canyon/build.config.ts index 058ec4a..c298395 100644 --- a/plugins/vite-plugin-canyon/build.config.ts +++ b/plugins/vite-plugin-canyon/build.config.ts @@ -7,4 +7,5 @@ export default defineBuildConfig({ clean: true, declaration: true, externals: ['@swc/core'], // 排除 @swc/core 依赖 + failOnWarn:false }); diff --git a/plugins/vite-plugin-canyon/package.json b/plugins/vite-plugin-canyon/package.json index bf48204..bb2765b 100644 --- a/plugins/vite-plugin-canyon/package.json +++ b/plugins/vite-plugin-canyon/package.json @@ -5,14 +5,12 @@ "files": [ "dist/*" ], - "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs" + "import": "./dist/index.mjs" } }, "scripts": {