vite-plugin-importer
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "vite-plugin-importer", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Integration for babel-plugin-import", |
@@ -26,2 +26,7 @@ # vite-plugin-importer | ||
}), | ||
usePluginImport({ | ||
libraryName: "antd", | ||
libraryDirectory: "es", | ||
style: "css", | ||
}), | ||
]; | ||
@@ -28,0 +33,0 @@ }) |
@@ -12,3 +12,3 @@ const babelImport = require('babel-plugin-import'); | ||
if (/\.[j|t][sx|s]|vue$/.test(id)) { | ||
if (/\.(?:[jt]sx?|vue)$/.test(id)) { | ||
const plugins = [importMeta, [babelImport, options]] | ||
@@ -15,0 +15,0 @@ |
3419
39