Compare commits
No commits in common. "bf68560ae520294fcb780f2e8e2d2177152d20ed" and "6ca2d7aee0b478783e203784c76eabcdaeb3481c" have entirely different histories.
bf68560ae5
...
6ca2d7aee0
|
@ -186,16 +186,8 @@ export function parseJs(
|
|||
if (isBuild) {
|
||||
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}'${
|
||||
t === 'export' ? `\nexport ${_alias}` : ''
|
||||
t === 'export' ? `\nexport ${alias}` : ''
|
||||
}`
|
||||
}
|
||||
)
|
||||
|
|
|
@ -42,10 +42,6 @@ export default async function createServer(root = '', conf = {}) {
|
|||
conf.imports['vue-router'] = conf.imports['vue-router-dev']
|
||||
}
|
||||
|
||||
if (conf.devServer.headers) {
|
||||
Object.assign(COMMON_HEADERS, conf.devServer.headers)
|
||||
}
|
||||
|
||||
if (USE_HTTPS) {
|
||||
Object.assign(SERVER_OPTIONS, conf.devServer.ssl)
|
||||
|
||||
|
|
Loading…
Reference in New Issue