From c9ca54437a2a035e5e0b658b8582883edf105753 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 12 Dec 2024 17:47:52 +0800 Subject: [PATCH] fixed banner --- src/vue-router.js | 6 +----- update.js | 9 +++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/vue-router.js b/src/vue-router.js index 916f7aa..6bc71b1 100644 --- a/src/vue-router.js +++ b/src/vue-router.js @@ -1,8 +1,4 @@ -/*! - * vue-router v4.5.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */ + import { getCurrentInstance, inject, onUnmounted, onDeactivated, onActivated, computed, unref, watchEffect, defineComponent, reactive, h, provide, ref, watch, shallowRef, shallowReactive, nextTick } from 'vue'; diff --git a/update.js b/update.js index 8a804cf..f5b4362 100644 --- a/update.js +++ b/update.js @@ -58,6 +58,7 @@ export function execAsync(cmd) { fs.echo( code .replace(/\r\n/g, '\n') + .replace(/\/\*\![\w\W]*?\*\//g, '') .replace("import { setupDevtoolsPlugin } from '@vue/devtools-api';", '') .replace('let routerId = 0;', '') .replace( @@ -78,6 +79,14 @@ export function execAsync(cmd) { outdir: 'dist', target: 'es2017', format: 'esm', + banner: { + js: `/** + * vue-router v${version} + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */` + }, + charset: 'utf8', minify: true, treeShaking: true })