vite-plugin-purge-icons
Advanced tools
Comparing version 0.9.2 to 0.10.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.10.0](https://github.com/antfu/purge-icons/compare/v0.9.2...v0.10.0) (2023-11-18) | ||
### Features | ||
* support vite 5 ([#45](https://github.com/antfu/purge-icons/issues/45)) ([23ebe40](https://github.com/antfu/purge-icons/commit/23ebe40b3809760ef1fa9503e6e12e9458fdc503)) | ||
## [0.9.2](https://github.com/antfu/purge-icons/compare/v0.9.1...v0.9.2) (2022-12-12) | ||
@@ -8,0 +19,0 @@ |
@@ -6,2 +6,2 @@ import { Plugin } from 'vite'; | ||
export default createPlugin; | ||
export { createPlugin as default }; |
@@ -1,5 +0,22 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
// src/index.ts | ||
var _rolluppluginpurgeicons = require('rollup-plugin-purge-icons'); var _rolluppluginpurgeicons2 = _interopRequireDefault(_rolluppluginpurgeicons); | ||
function createPlugin(options = {}) { | ||
const parsedOptions = { | ||
const parsedOptions = __spreadValues({ | ||
content: [ | ||
@@ -12,9 +29,7 @@ "**/*.html", | ||
], | ||
iconifyImportName: "@iconify/iconify", | ||
...options | ||
}; | ||
return { | ||
enforce: "pre", | ||
..._rolluppluginpurgeicons2.default.call(void 0, parsedOptions) | ||
}; | ||
iconifyImportName: "@iconify/iconify" | ||
}, options); | ||
return __spreadValues({ | ||
enforce: "pre" | ||
}, _rolluppluginpurgeicons2.default.call(void 0, parsedOptions)); | ||
} | ||
@@ -21,0 +36,0 @@ |
{ | ||
"name": "vite-plugin-purge-icons", | ||
"version": "0.9.2", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
"version": "0.10.0", | ||
"license": "MIT", | ||
"author": "antfu <anthonyfu117@hotmail.com>", | ||
"repository": { | ||
@@ -17,2 +9,14 @@ "type": "git", | ||
}, | ||
"author": "antfu <anthonyfu117@hotmail.com>", | ||
"files": [ | ||
"dist", | ||
"generated.d.ts" | ||
], | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"homepage": "https://github.com/antfu/purge-icons", | ||
@@ -26,21 +30,17 @@ "bugs": "https://github.com/antfu/purge-icons/issues", | ||
}, | ||
"files": [ | ||
"dist", | ||
"generated.d.ts" | ||
], | ||
"peerDependencies": { | ||
"vite": ">=2" | ||
}, | ||
"dependencies": { | ||
"@purge-icons/core": "^0.9.1", | ||
"@purge-icons/generated": "^0.9.0", | ||
"rollup-plugin-purge-icons": "^0.9.1" | ||
"@purge-icons/core": "^0.10.0", | ||
"@purge-icons/generated": "^0.10.0", | ||
"rollup-plugin-purge-icons": "^0.10.0" | ||
}, | ||
"peerDependencies": { | ||
"vite": "^2.0.0 || ^3.0.0 || ^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"esno": "^0.4.4", | ||
"tsup": "^4.5.1", | ||
"typescript": "^4.5.5", | ||
"vite": "^2.0.4" | ||
"esno": "^0.4.6", | ||
"tsup": "^4.14.0", | ||
"typescript": "^4.9.5", | ||
"vite": "^5" | ||
}, | ||
"gitHead": "d75ef59c74e45eaa241f49d148d8ced10745dbc8" | ||
"gitHead": "1269bddf1cba967fcac5dc301d5c921fa3d8598f" | ||
} |
Sorry, the diff of this file is not supported yet
10514
79
+ Added@esbuild/aix-ppc64@0.24.2(transitive)
+ Added@esbuild/android-arm@0.24.2(transitive)
+ Added@esbuild/android-arm64@0.24.2(transitive)
+ Added@esbuild/android-x64@0.24.2(transitive)
+ Added@esbuild/darwin-arm64@0.24.2(transitive)
+ Added@esbuild/darwin-x64@0.24.2(transitive)
+ Added@esbuild/freebsd-arm64@0.24.2(transitive)
+ Added@esbuild/freebsd-x64@0.24.2(transitive)
+ Added@esbuild/linux-arm@0.24.2(transitive)
+ Added@esbuild/linux-arm64@0.24.2(transitive)
+ Added@esbuild/linux-ia32@0.24.2(transitive)
+ Added@esbuild/linux-loong64@0.24.2(transitive)
+ Added@esbuild/linux-mips64el@0.24.2(transitive)
+ Added@esbuild/linux-ppc64@0.24.2(transitive)
+ Added@esbuild/linux-riscv64@0.24.2(transitive)
+ Added@esbuild/linux-s390x@0.24.2(transitive)
+ Added@esbuild/linux-x64@0.24.2(transitive)
+ Added@esbuild/netbsd-arm64@0.24.2(transitive)
+ Added@esbuild/netbsd-x64@0.24.2(transitive)
+ Added@esbuild/openbsd-arm64@0.24.2(transitive)
+ Added@esbuild/openbsd-x64@0.24.2(transitive)
+ Added@esbuild/sunos-x64@0.24.2(transitive)
+ Added@esbuild/win32-arm64@0.24.2(transitive)
+ Added@esbuild/win32-ia32@0.24.2(transitive)
+ Added@esbuild/win32-x64@0.24.2(transitive)
+ Added@iconify/iconify@3.1.1(transitive)
+ Added@iconify/types@2.0.0(transitive)
+ Added@purge-icons/core@0.10.0(transitive)
+ Added@purge-icons/generated@0.10.0(transitive)
+ Added@rollup/rollup-android-arm-eabi@4.30.1(transitive)
+ Added@rollup/rollup-android-arm64@4.30.1(transitive)
+ Added@rollup/rollup-darwin-arm64@4.30.1(transitive)
+ Added@rollup/rollup-darwin-x64@4.30.1(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.30.1(transitive)
+ Added@rollup/rollup-freebsd-x64@4.30.1(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.30.1(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.30.1(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.30.1(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.30.1(transitive)
+ Added@rollup/rollup-linux-loongarch64-gnu@4.30.1(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.30.1(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.30.1(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.30.1(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.30.1(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.30.1(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.30.1(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.30.1(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.30.1(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Addedesbuild@0.24.2(transitive)
+ Addedrollup@4.30.1(transitive)
+ Addedrollup-plugin-purge-icons@0.10.0(transitive)
+ Addedvite@6.0.7(transitive)
- Removed@esbuild/android-arm@0.18.20(transitive)
- Removed@esbuild/android-arm64@0.18.20(transitive)
- Removed@esbuild/android-x64@0.18.20(transitive)
- Removed@esbuild/darwin-arm64@0.18.20(transitive)
- Removed@esbuild/darwin-x64@0.18.20(transitive)
- Removed@esbuild/freebsd-arm64@0.18.20(transitive)
- Removed@esbuild/freebsd-x64@0.18.20(transitive)
- Removed@esbuild/linux-arm@0.18.20(transitive)
- Removed@esbuild/linux-arm64@0.18.20(transitive)
- Removed@esbuild/linux-ia32@0.18.20(transitive)
- Removed@esbuild/linux-loong64@0.18.20(transitive)
- Removed@esbuild/linux-mips64el@0.18.20(transitive)
- Removed@esbuild/linux-ppc64@0.18.20(transitive)
- Removed@esbuild/linux-riscv64@0.18.20(transitive)
- Removed@esbuild/linux-s390x@0.18.20(transitive)
- Removed@esbuild/linux-x64@0.18.20(transitive)
- Removed@esbuild/netbsd-x64@0.18.20(transitive)
- Removed@esbuild/openbsd-x64@0.18.20(transitive)
- Removed@esbuild/sunos-x64@0.18.20(transitive)
- Removed@esbuild/win32-arm64@0.18.20(transitive)
- Removed@esbuild/win32-ia32@0.18.20(transitive)
- Removed@esbuild/win32-x64@0.18.20(transitive)
- Removed@purge-icons/core@0.9.1(transitive)
- Removed@purge-icons/generated@0.9.0(transitive)
- Removedesbuild@0.18.20(transitive)
- Removedrollup@3.29.5(transitive)
- Removedrollup-plugin-purge-icons@0.9.1(transitive)
- Removedvite@4.5.5(transitive)
Updated@purge-icons/core@^0.10.0