fixed banner

master
yutent 2024-12-12 17:47:52 +08:00
parent 5b756ea510
commit c9ca54437a
2 changed files with 10 additions and 5 deletions

View File

@ -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'; import { getCurrentInstance, inject, onUnmounted, onDeactivated, onActivated, computed, unref, watchEffect, defineComponent, reactive, h, provide, ref, watch, shallowRef, shallowReactive, nextTick } from 'vue';

View File

@ -58,6 +58,7 @@ export function execAsync(cmd) {
fs.echo( fs.echo(
code code
.replace(/\r\n/g, '\n') .replace(/\r\n/g, '\n')
.replace(/\/\*\![\w\W]*?\*\//g, '')
.replace("import { setupDevtoolsPlugin } from '@vue/devtools-api';", '') .replace("import { setupDevtoolsPlugin } from '@vue/devtools-api';", '')
.replace('let routerId = 0;', '') .replace('let routerId = 0;', '')
.replace( .replace(
@ -78,6 +79,14 @@ export function execAsync(cmd) {
outdir: 'dist', outdir: 'dist',
target: 'es2017', target: 'es2017',
format: 'esm', format: 'esm',
banner: {
js: `/**
* vue-router v${version}
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/`
},
charset: 'utf8',
minify: true, minify: true,
treeShaking: true treeShaking: true
}) })