New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-importer

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-importer - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "vite-plugin-importer",
"version": "0.2.1",
"version": "0.2.2",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "description": "Integration for babel-plugin-import",

@@ -31,2 +31,14 @@ # vite-plugin-importer

}),
usePluginImport({
libraryName: 'vant',
libraryDirectory: 'es',
style: (name) => `${name}/style/less`,
}),
usePluginImport({
libraryName: 'element-plus',
customStyleName: (name) => {
return `element-plus/lib/theme-chalk/${name}.css`;
},
})
// Other configurations welcome PR
];

@@ -33,0 +45,0 @@ })

@@ -16,2 +16,3 @@ const babelImport = require('babel-plugin-import');

const result = babel.transformSync(code, {
configFile: false,
ast: true,

@@ -18,0 +19,0 @@ plugins,

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