Skip to content

Commit

Permalink
set target and module into ES2020 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Take-Me1010 committed Feb 17, 2023
1 parent 297ecd4 commit ae5852a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.ts
Expand Up @@ -4,7 +4,7 @@ import * as path from 'path';
import type { Plugin, ViteDevServer } from 'vite';
import Markdown from 'vite-plugin-vue-markdown';

export default function (): Plugin {
export default function vuePreviewPlugin(): Plugin {

const markdown = Markdown();
const previewBlockReg = /\<(preview)[\s\S]*?\>([\s\S]*?)\<\/\1\>/g;
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -6,6 +6,7 @@
"**/*.js",
"**/*.d.ts"
],
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/johnsoncodehk/vite-plugin-vue-component-preview.git"
Expand Down
2 changes: 1 addition & 1 deletion tooling/index.ts
Expand Up @@ -79,4 +79,4 @@ const plugin: VueLanguagePlugin = (ctx) => {
};
};

export = plugin;
export default plugin;
4 changes: 2 additions & 2 deletions tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2016",
"module": "CommonJS",
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
Expand Down

0 comments on commit ae5852a

Please sign in to comment.