diff --git a/CHANGELOG.md b/CHANGELOG.md index 53c9371..350924e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# [2.0.0](https://github.com/anncwb/vite-plugin-style-import/compare/v1.4.0...v2.0.0) (2022-01-29) + +### Bug Fixes + +- added support for running from an es module ([#62](https://github.com/anncwb/vite-plugin-style-import/issues/62)) ([52db3bd](https://github.com/anncwb/vite-plugin-style-import/commit/52db3bd56023365f28b26d05479adc6c0fd71f58)) + +### Features + +- add vxe-table resolve ([#57](https://github.com/anncwb/vite-plugin-style-import/issues/57)) ([4386c3a](https://github.com/anncwb/vite-plugin-style-import/commit/4386c3a3d50cec3df9163330f4b47901e5764b34)) + +### Performance Improvements + +- remove resolveComponent and transformComponentImportName ([62e52d8](https://github.com/anncwb/vite-plugin-style-import/commit/62e52d846028be1da2e8d4323f49ea578034c09c)) + ## [1.4.1](https://github.com/anncwb/vite-plugin-style-import/compare/v1.4.0...v1.4.1) (2021-12-28) ### Bug Fixes diff --git a/README.md b/README.md index a9191ea..9522676 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,8 @@ import 'element-plus/lib/theme-chalk/el-button.css'; ```ts import { UserConfigExport } from 'vite' -import styleImport, { +import { + createStyleImportPlugin, AndDesignVueResolve, VantResolve, ElementPlusResolve, @@ -81,7 +82,7 @@ export default (): UserConfigExport => { }, }, plugins: [ - styleImport({ + createStyleImportPlugin({ resolves: [ AndDesignVueResolve(), VantResolve(), diff --git a/README.zh_CN.md b/README.zh_CN.md index f7d036e..2fdbd3a 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -61,7 +61,8 @@ import 'element-plus/lib/theme-chalk/el-button.css'; ```ts import { UserConfigExport } from 'vite' -import styleImport, { +import { + createStyleImportPlugin, AndDesignVueResolve, VantResolve, ElementPlusResolve, @@ -81,7 +82,7 @@ export default (): UserConfigExport => { }, }, plugins: [ - styleImport({ + createStyleImportPlugin({ resolves:[ AndDesignVueResolve(), VantResolve(), diff --git a/package.json b/package.json index 1f2c388..f54afd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-style-import-monorepo", - "version": "1.4.1", + "version": "2.0.0", "private": true, "license": "MIT", "author": "Vben", diff --git a/packages/core/package.json b/packages/core/package.json index 358eda9..57d2999 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-style-import", - "version": "2.0.0-beta.1", + "version": "2.0.0", "description": "A plug-in that imports component library styles on demand", "main": "dist/index.cjs", "module": "dist/index.mjs",