mirror of https://github.com/status-im/metro.git
51e1a1f6a2
Summary: We've decided to move the syntax for asynchronously requiring async dependencies. The new syntax works better with promises and therefore withe async/await as well. The new syntax looks like this: `System.import('moduleA').then(moduleA => {...});` or if you're using async/await you could simply do: let moduleA = await System.import('moduleA'); new moduleA().someFunction(); If you need to require multiple dependencies just do: Promise .all([System.import('moduleA'), System.import('moduleB')]) .then((moduleA, moduleB) => {...}) or the equivalent using async/await |
||
---|---|---|
.. | ||
__mocks__ | ||
src | ||
.babelrc | ||
.npmignore | ||
index.js |