Refactor entrypoints
This commit is contained in:
15
javascript/src_js/entrypoint/_entryAsync.js
Normal file
15
javascript/src_js/entrypoint/_entryAsync.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
const wrapAsm = require('./wrapAsm');
|
||||
|
||||
module.exports = (loadAsm) => ({
|
||||
loadYoga: () => loadAsm().then(wrapAsm),
|
||||
...require('./generated/YGEnums'),
|
||||
});
|
Reference in New Issue
Block a user