Logo
Explore Help
Sign In
DaddyFrosty/yoga
1
0
Fork 0
You've already forked yoga
Code Issues 96 Pull Requests 31 Actions Packages Projects Releases 33 Wiki Activity
Files
d90914f3dcc353c113c3f40dafd973829269d66d
yoga/javascript/.babelrc

11 lines
116 B
Plaintext
Raw Normal View History

Add babel processing to browser build to remove references to node builtins Summary: Currently the nbind asm.js output generates boilerplate code which can conditionally load node's `fs` and `path` modules. If this output is run directly in the browser there are no issues but if you run it through a bundler the build step will fail trying to resolve the node builtins. Workarounds currently exist for bundlers like webpack (mentioned in #444) but this is not a safe assumption to make (for example such workarounds don't exist for `metro-bundler`). I am by no means suggesting that this is the perfect solution but this might provide a stop-gap fix for people who are currently blocked by this issue (like I am). Closes https://github.com/facebook/yoga/pull/585 Differential Revision: D5388660 Pulled By: emilsjolander fbshipit-source-id: d3a51eb852df35e3d0610158fe7d9f5754e4e684
2017-07-10 11:52:23 -07:00
{
"plugins": [
[
"replace-require",
{
"fs": "{}",
"path": "{}"
}
]
]
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 97ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API