From 9581b3a57655e1e911395d2217dc1f359adb29aa Mon Sep 17 00:00:00 2001 From: Jan-Paul Kleemans Date: Fri, 17 Nov 2023 22:18:50 +0100 Subject: [PATCH] Load vite-svg-loader via npm --- example/package-lock.json | 19 +++++++++++++++++++ example/package.json | 1 + example/src/vite-env.d.ts | 2 +- example/vite.config.ts | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/example/package-lock.json b/example/package-lock.json index e7f1503..0d4a229 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -8,6 +8,7 @@ "name": "example", "version": "0.0.0", "dependencies": { + "vite-svg-loader": "file:..", "vue": "^3.3.8" }, "devDependencies": { @@ -17,6 +18,20 @@ "vue-tsc": "^1.8.22" } }, + "..": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "svgo": "^3.0.2" + }, + "devDependencies": { + "cypress": "^8.6.0", + "standard": "^16.0.3" + }, + "peerDependencies": { + "vue": ">=3.2.13" + } + }, "node_modules/@babel/parser": { "version": "7.23.3", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz", @@ -1023,6 +1038,10 @@ } } }, + "node_modules/vite-svg-loader": { + "resolved": "..", + "link": true + }, "node_modules/vue": { "version": "3.3.8", "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.8.tgz", diff --git a/example/package.json b/example/package.json index 99edb17..8ea29b0 100644 --- a/example/package.json +++ b/example/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "vite-svg-loader": "file:..", "vue": "^3.3.8" }, "devDependencies": { diff --git a/example/src/vite-env.d.ts b/example/src/vite-env.d.ts index 8f72b49..8cee151 100644 --- a/example/src/vite-env.d.ts +++ b/example/src/vite-env.d.ts @@ -1,2 +1,2 @@ /// -/// +/// diff --git a/example/vite.config.ts b/example/vite.config.ts index 16c9af0..519f50c 100644 --- a/example/vite.config.ts +++ b/example/vite.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' -import viteSvgLoader from '../' +import viteSvgLoader from 'vite-svg-loader' // https://vitejs.dev/config/ export default defineConfig({