Add simple readme and rename APIs

This commit is contained in:
Nick Gerleman
2022-12-23 03:08:21 -08:00
parent aaadf57b19
commit 51a2a3856e
7 changed files with 36 additions and 11 deletions

View File

@@ -13,8 +13,8 @@ module.exports = async () => {
} else if (process.env['SYNC']) {
global.Yoga = require("./dist/sync.asmjs");
} else if (process.env['WASM']) {
global.Yoga = await require("./dist/index.wasm").load();
global.Yoga = await require("./dist/index.wasm").loadYoga();
} else {
global.Yoga = await require("./dist/index.asmjs").load();
global.Yoga = await require("./dist/index.asmjs").loadYoga();
}
}