Continue ESM transform
This commit is contained in:
parent
b8205a63aa
commit
36835216f5
44 changed files with 1939 additions and 502 deletions
|
@ -1,6 +1,9 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
import * as url from "url";
|
||||
|
||||
import * as toml from "@iarna/toml";
|
||||
|
||||
import * as VariantDataParser from "../../font-src/support/variant-data.mjs";
|
||||
|
||||
function getCvData(parsed) {
|
||||
|
@ -138,6 +141,7 @@ function uniqueHotChars(cfgDefault, cfgSS) {
|
|||
return Array.from(s);
|
||||
}
|
||||
export const parseVariantsData = async function () {
|
||||
const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
||||
const variantsToml = await fs.promises.readFile(
|
||||
path.join(__dirname, "../../params/variants.toml"),
|
||||
"utf8"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue