mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-17 21:36:37 +00:00
basic search implementation
This commit is contained in:
parent
c4cf0dcb02
commit
fd5c8d17d3
26 changed files with 751 additions and 182 deletions
quartz
|
@ -75,12 +75,14 @@ yargs(hideBin(process.argv))
|
|||
text = text.replace('export default', '')
|
||||
text = text.replace('export', '')
|
||||
|
||||
const sourcefile = path.relative(path.resolve('.'), args.path)
|
||||
const resolveDir = path.dirname(sourcefile)
|
||||
const transpiled = await esbuild.build({
|
||||
stdin: {
|
||||
contents: text,
|
||||
loader: 'ts',
|
||||
resolveDir: '.',
|
||||
sourcefile: path.relative(path.resolve('.'), args.path),
|
||||
resolveDir,
|
||||
sourcefile,
|
||||
},
|
||||
write: false,
|
||||
bundle: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue