mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
refactor: Tag class support in registerTag()
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { last } from '../util/underscore'
|
||||
import { last } from '../util'
|
||||
|
||||
function domResolve (root: string, path: string) {
|
||||
const base = document.createElement('base')
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './loader'
|
||||
export * from './fs'
|
||||
+1
-2
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user