vite-plugin-resolve
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "vite-plugin-resolve", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Custom resolve code for vite", | ||
"main": "src/index.js", | ||
"main": "index.js", | ||
"repository": "https://github.com/caoxiemeihao/vite-plugins/tree/main/packages/resolve", | ||
@@ -10,8 +10,8 @@ "author": "草鞋没号 <308487730@qq.com>", | ||
"scripts": {}, | ||
"devDependencies": {}, | ||
"files": [ | ||
"src", | ||
"package.json", | ||
"README.md" | ||
], | ||
"devDependencies": { | ||
"@types/node": "^16.11.6", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.4.4", | ||
"vite": "^2.6.13" | ||
}, | ||
"keywords": [ | ||
@@ -18,0 +18,0 @@ "vite", |
@@ -25,6 +25,6 @@ # vite-plugin-resolve | ||
vue: `const vue = window.Vue; export default vue;`, | ||
// use nested module and function to return code string | ||
// use nested module name, return code string through function | ||
'@scope/name': () => `const Lib = window.LibraryName; export default Lib;`, | ||
// use function to return string in electron | ||
'electron-store': () => `const Store = require('electron-store'); export default Store;`, | ||
// use in electron | ||
'electron': `const Electron = require('electron'); export default Electron;`, | ||
}) | ||
@@ -37,3 +37,3 @@ ] | ||
1. Resolve-module will be generated code into `node_modules/.vite-plugin-resolve/xxxx.js` | ||
1. Resolve-module will be generated code into `node_modules/.vite-plugin-resolve/vue.js` | ||
2. Append an resolve-module into alias | ||
@@ -40,0 +40,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
4
4836
4
105
1