Socket
Socket
Sign inDemoInstall

vite-plugin-resolve

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-resolve - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

2

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc