Compare commits

..

No commits in common. "bf68560ae520294fcb780f2e8e2d2177152d20ed" and "6ca2d7aee0b478783e203784c76eabcdaeb3481c" have entirely different histories.

2 changed files with 1 additions and 13 deletions

View File

@ -186,16 +186,8 @@ export function parseJs(
if (isBuild) { if (isBuild) {
name = name.replace(/\.vue$/, '.js') name = name.replace(/\.vue$/, '.js')
} }
if (alias.trim() === '*') {
return `${t} ${alias} from '${name}'`
}
let _alias = alias
if (alias.includes('* as')) {
_alias = ' default ' + alias.replace('* as', '').trim()
}
return `import ${alias} from '${name}'${ return `import ${alias} from '${name}'${
t === 'export' ? `\nexport ${_alias}` : '' t === 'export' ? `\nexport ${alias}` : ''
}` }`
} }
) )

View File

@ -42,10 +42,6 @@ export default async function createServer(root = '', conf = {}) {
conf.imports['vue-router'] = conf.imports['vue-router-dev'] conf.imports['vue-router'] = conf.imports['vue-router-dev']
} }
if (conf.devServer.headers) {
Object.assign(COMMON_HEADERS, conf.devServer.headers)
}
if (USE_HTTPS) { if (USE_HTTPS) {
Object.assign(SERVER_OPTIONS, conf.devServer.ssl) Object.assign(SERVER_OPTIONS, conf.devServer.ssl)