fixed banner
parent
5b756ea510
commit
c9ca54437a
|
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue