From b2408a9b2d05634910075b78ff46658609c12859 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Tue, 16 Mar 2021 20:26:22 +0100 Subject: [PATCH] Fixing dependencies --- package.json | 13 +++++++------ plugin/plugin.ts | 2 -- 2 files changed, 7 insertions(+), 8 deletions(-) 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 {