refactor: Tag class support in registerTag()

This commit is contained in:
Jun Yang
2022-11-27 14:04:01 +08:00
parent 1f6ce7c822
commit 92992689cd
145 changed files with 694 additions and 768 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { last } from '../util/underscore'
import { last } from '../util'
function domResolve (root: string, path: string) {
const base = document.createElement('base')
+2
View File
@@ -0,0 +1,2 @@
export * from './loader'
export * from './fs'
+1 -2
View File
@@ -1,6 +1,5 @@
import { FS } from './fs'
import { escapeRegex } from '../util/underscore'
import { assert } from '../util/assert'
import { assert, escapeRegex } from '../util'
export interface LoaderOptions {
fs: FS;
+3 -3
View File
@@ -1,10 +1,10 @@
import * as _ from '../util/underscore'
import { promisify } from '../util'
import { sep, resolve as nodeResolve, extname, dirname as nodeDirname } from 'path'
import { stat, statSync, readFile as nodeReadFile, readFileSync as nodeReadFileSync } from 'fs'
import { requireResolve } from './node-require'
const statAsync = _.promisify(stat)
const readFileAsync = _.promisify<string, string, string>(nodeReadFile)
const statAsync = promisify(stat)
const readFileAsync = promisify<string, string, string>(nodeReadFile)
export async function exists (filepath: string) {
try {