merge with josh

This commit is contained in:
Cherrie Chang 2024-10-23 11:04:41 -07:00
parent 1365dcc082
commit eace9bf393
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export default function generateCitation() {
})(); })();
if (!citationCff) { if (!citationCff) {
return JSON.stringify({ apa: "", bibtex: "" }); return { apa: "", bibtex: "" };
} }
// Try to convert CITATION.cff to APA string // Try to convert CITATION.cff to APA string

View File

@ -49,6 +49,7 @@ const makeConfig = ({
__APACITATION__: JSON.stringify(citationData.apa), __APACITATION__: JSON.stringify(citationData.apa),
__BIBTEXCITATION__: JSON.stringify(citationData.bibtex), __BIBTEXCITATION__: JSON.stringify(citationData.bibtex),
}, },
loaders: { ".json": "json" },
}; };
/** @type{import("@rollup/plugin-commonjs").RollupCommonJSOptions} */ /** @type{import("@rollup/plugin-commonjs").RollupCommonJSOptions} */
@ -106,7 +107,6 @@ const makeConfig = ({
plugins: [ plugins: [
externals({ deps: false }), externals({ deps: false }),
resolve({ preferBuiltins: false }), resolve({ preferBuiltins: false }),
json(),
commonjs(commonjsPluginOptions), commonjs(commonjsPluginOptions),
esbuild({ ...esBuildPluginOptions, target: "esnext" }), esbuild({ ...esBuildPluginOptions, target: "esnext" }),
], ],