fix: suppress harmless esbuild warnings from bundled plugin deps
Add logOverride to the main esbuild build context to silence three warning types that originate from upstream third-party code bundled inside plugin dist files: - direct-eval: gray-matter's JS frontmatter engine in note-properties - equals-negative-zero: webidl-conversions in citations - duplicate-object-key: BibTeX month mapping in citations
This commit is contained in:
@@ -341,6 +341,11 @@ export async function handleBuild(argv) {
|
||||
metafile: true,
|
||||
sourcemap: true,
|
||||
sourcesContent: false,
|
||||
logOverride: {
|
||||
"direct-eval": "silent",
|
||||
"equals-negative-zero": "silent",
|
||||
"duplicate-object-key": "silent",
|
||||
},
|
||||
plugins: [
|
||||
sassPlugin({
|
||||
type: "css-text",
|
||||
|
||||
Reference in New Issue
Block a user