vite-plugin-resolve
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -15,3 +15,3 @@ import { Plugin, UserConfig } from 'vite'; | ||
*/ | ||
optimize: boolean; | ||
optimizeDepsExclude: boolean; | ||
}, | ||
@@ -18,0 +18,0 @@ ): Plugin; |
@@ -8,3 +8,3 @@ const fs = require('fs'); | ||
module.exports = function resolve(resolves = {}, options = {}) { | ||
const { optimize = true } = options; | ||
const { optimizeDepsExclude = true } = options; | ||
let root = process.cwd(); | ||
@@ -25,3 +25,3 @@ let cacheDir = '.vite-plugin-resolve'; | ||
if (optimize) modifyOptimizeDepsExclude(config, Object.keys(resolves)); | ||
if (optimizeDepsExclude) modifyOptimizeDepsExclude(config, Object.keys(resolves)); | ||
@@ -28,0 +28,0 @@ modifyAlias( |
{ | ||
"name": "vite-plugin-resolve", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Custom resolve module content.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -54,3 +54,3 @@ # vite-plugin-resolve | ||
*/ | ||
optimize: boolean | ||
optimizeDepsExclude: boolean | ||
} | ||
@@ -91,3 +91,3 @@ ) => import('vite').VitePlugin | ||
3. Add `vue` to the `optimizeDeps.exclude` **by default**. You can disable it through `options.optimize` | ||
3. Add `vue` to the `optimizeDeps.exclude` **by default**. You can disable it through `options.optimizeDepsExclude` | ||
@@ -94,0 +94,0 @@ ```js |
@@ -54,3 +54,3 @@ # vite-plugin-resolve | ||
*/ | ||
optimize: boolean | ||
optimizeDepsExclude: boolean | ||
} | ||
@@ -91,3 +91,3 @@ ) => import('vite').VitePlugin | ||
3. 默认会将 `vue` 添加到 `optimizeDeps.exclude` 中. 你可以通过 `options.optimize` 禁用 | ||
3. 默认会将 `vue` 添加到 `optimizeDeps.exclude` 中. 你可以通过 `options.optimizeDepsExclude` 禁用 | ||
@@ -94,0 +94,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9648