workflow: improve template explorer

This commit is contained in:
Evan You
2019-10-04 17:43:20 -04:00
parent 8d49b97cc3
commit 0873254c6c
7 changed files with 313 additions and 53 deletions

View File

@@ -29,7 +29,7 @@ import { PropsExpression } from './transforms/transformElement'
let _parse: typeof parse
let _walk: typeof walk
function loadDep(name: string) {
export function loadDep(name: string) {
if (typeof process !== 'undefined' && isFunction(require)) {
return require(name)
} else {