diff --git a/package.json b/package.json index 1ab0809..b0d6028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-svg-sprite-generator", - "version": "5.0.0", + "version": "5.0.1", "description": "", "main": "plugin.js", "types": "ts/index.d.ts", @@ -37,12 +37,13 @@ "typescript": "^3.9.7", "webpack-cli": "^3.3.12", "webpack-dev-server": "^3.11.2", - "xml-parser": "^1.2.1" + "xml-parser": "^1.2.1", + "webpack": "^5.26.1", + "potpack": "^1.0.1" }, - "dependencies": { + "peerDependencies": { + "webpack": "^5.x", "fs-extra": "^9.0.1", - "path": "^0.12.7", - "potpack": "^1.0.1", - "webpack": "^5.26.1" + "path": "^0.12.7" } } diff --git a/plugin/plugin.ts b/plugin/plugin.ts index 26cb502..7e84001 100644 --- a/plugin/plugin.ts +++ b/plugin/plugin.ts @@ -1,8 +1,6 @@ import * as path from "path"; import * as SystemFs from "fs-extra"; import sha1 from "sha1"; -import util from "util"; - import webpack, {Compiler, Module, RuntimeGlobals} from "webpack"; import {