blank project
This commit is contained in:
19
node_modules/astro/dist/assets/fonts/runtime.js
generated
vendored
Normal file
19
node_modules/astro/dist/assets/fonts/runtime.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { AstroError, AstroErrorData } from "../../core/errors/index.js";
|
||||
function createGetFontData({ consumableMap }) {
|
||||
return function getFontData(cssVariable) {
|
||||
if (!consumableMap) {
|
||||
throw new AstroError(AstroErrorData.ExperimentalFontsNotEnabled);
|
||||
}
|
||||
const data = consumableMap.get(cssVariable);
|
||||
if (!data) {
|
||||
throw new AstroError({
|
||||
...AstroErrorData.FontFamilyNotFound,
|
||||
message: AstroErrorData.FontFamilyNotFound.message(cssVariable)
|
||||
});
|
||||
}
|
||||
return data;
|
||||
};
|
||||
}
|
||||
export {
|
||||
createGetFontData
|
||||
};
|
||||
Reference in New Issue
Block a user