Remove some console logs
This commit is contained in:
parent
fcfc582396
commit
c3435db357
4 changed files with 10 additions and 12 deletions
|
|
@ -58,11 +58,9 @@ export const callouts: Plugin = function (providedConfig?: Partial<Config>) {
|
|||
// .join("|");
|
||||
// @ts-ignore
|
||||
const Parser = this.Parser
|
||||
console.log(Parser)
|
||||
|
||||
const blockTokenizers = Parser.prototype.blockTokenizers
|
||||
const blockMethods = Parser.prototype.blockMethods
|
||||
console.log(blockMethods, blockTokenizers)
|
||||
// console.log(blockMethods, blockTokenizers)
|
||||
|
||||
|
||||
blockTokenizers.callout = tok
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ function blockquote(eat: { (arg0: string): any; (arg0: string): any; now: any; }
|
|||
const title = self.tokenizeInline(m.groups?.title, now);
|
||||
contents = self.tokenizeBlock(contents.join(C_NEWLINE), now);
|
||||
exit();
|
||||
console.log(title,)
|
||||
// console.log(title,)
|
||||
return add({
|
||||
type: 'callout',
|
||||
children: [{
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
if (typeof result.code == "string") {
|
||||
output = result.code
|
||||
} else {
|
||||
console.log(result)
|
||||
console.error(result)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,13 +41,13 @@ type Options =
|
|||
function relativeResolver({ include, exclude, rootdir: rootDirCfg }: Options = {}): import('vite').Plugin {
|
||||
const rootDir = resolve(rootDirCfg || process.cwd());
|
||||
const filter = createFilter(include, exclude)
|
||||
console.log(rootDir)
|
||||
// console.log(rootDir)
|
||||
return {
|
||||
name: "relative resolver",
|
||||
async resolveId(file, origin, opt) {
|
||||
if (file.includes("Design")) {
|
||||
console.log(file, origin, !filter(origin), opt.isEntry)
|
||||
}
|
||||
// if (file.includes("Design")) {
|
||||
// console.log(file, origin, !filter(origin), opt.isEntry)
|
||||
// }
|
||||
|
||||
if (opt.isEntry) return
|
||||
|
||||
|
|
@ -56,8 +56,8 @@ function relativeResolver({ include, exclude, rootdir: rootDirCfg }: Options = {
|
|||
return null
|
||||
}
|
||||
|
||||
console.log("relatively resolving")
|
||||
console.log(relative(rootDir, resolve(dirname(origin as string), decodeURIComponent(file))))
|
||||
// console.log("relatively resolving")
|
||||
// console.log(relative(rootDir, resolve(dirname(origin as string), decodeURIComponent(file))))
|
||||
// if (!isThumbHash(file)) return
|
||||
// Your local include path must either starts with `./` or `../`
|
||||
// if (file.startsWith('./') || file.startsWith('../')) {
|
||||
|
|
@ -80,7 +80,7 @@ function blurhash_transform() {
|
|||
|
||||
// if (!blurRE.test(id)) return;
|
||||
if (!isThumbHash(id)) return;
|
||||
console.log(id, code)
|
||||
// console.log(id, code)
|
||||
// console.log(id.includes("blurhash"), id)
|
||||
return code;
|
||||
// return `export default \`${c.replace(/`/g, "\\`").trim()}\`;`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue