Skip to content

Commit

Permalink
chore: release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jul 6, 2021
1 parent fbbe676 commit 2786cff
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ module.exports = {
'no-console': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
};
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [1.0.1](https://github.com/anncwb/vite-plugin-svg-icons/compare/v0.4.1...v1.0.1) (2021-07-06)

### Bug Fixes

- **cors:** fix [#4](https://github.com/anncwb/vite-plugin-svg-icons/issues/4) ([14753dc](https://github.com/anncwb/vite-plugin-svg-icons/commit/14753dcc74b43cc0b5b7f3bff93cffa2e6b87bd4))
- **ssr:** fix SSR Cannot find module, fixed [#7](https://github.com/anncwb/vite-plugin-svg-icons/issues/7) ([81c8123](https://github.com/anncwb/vite-plugin-svg-icons/commit/81c812325fba2d3e04316de946550fb3387b0952))

### Features

- added virtual id import ([a86cb57](https://github.com/anncwb/vite-plugin-svg-icons/commit/a86cb573c7a9a152ea30a0282a5badd30fefeb9a))
- support ssr ([68ee842](https://github.com/anncwb/vite-plugin-svg-icons/commit/68ee84297629cf6768c0a1fdb6486f95d9a910d2))

## [0.7.1](https://github.com/anncwb/vite-plugin-svg-icons/compare/v1.0.0...v0.7.1) (2021-06-25)

## [0.7.1](https://github.com/anncwb/vite-plugin-svg-icons/compare/v0.4.1...v0.7.1) (2021-06-25)
Expand Down
5 changes: 5 additions & 0 deletions module.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'virtual:*' {
// eslint-disable-next-line
const component: any;
export default component;
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-svg-icons",
"version": "1.0.0",
"version": "1.0.1",
"description": "Vite Plugin for fast creating SVG sprites.",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand All @@ -10,7 +10,8 @@
"files": [
"dist",
"register.d.ts",
"client.d.ts"
"client.d.ts",
"module.d.ts"
],
"scripts": {
"dev": "npm run build -- --watch",
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// eslint-disable-next-line
/// <reference path="../module.d.ts" />

import type { Plugin } from 'vite';
import type { OptimizeOptions } from 'svgo';

import fg from 'fast-glob';
import getEtag from 'etag';
import cors from 'cors';

import { optimize } from 'svgo';
import fs from 'fs-extra';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"sourceMap": false,
"noEmitOnError": true
},
"include": ["src/**/*", "tests/**/*"],
"include": ["src/**/*", "tests/**/*", "client.d.ts"],
"exclude": ["**/dist", "**/node_modules"]
}

0 comments on commit 2786cff

Please sign in to comment.