This will give us a bundle that will work both on Internet Explorer 11, and in environments that don't allow unsafe eval. That way regeneratorRuntime = runtime is no longer an implicit definition of a global variable (which fails in strict mode), but it becomes just a reassignment of an existing variable which never fails, and so the code in the catch block (which requires unsafe eval) is never reached. But now we can just add var regeneratorRuntime to the top of the generated code (with Rollup's output.intro setting). This will still fail in strict mode without unsafe eval. This sloppy mode guilty code snippet: is this a Babel or a Rollup result?īabel, or rather regenerator-runtime which is bundled by Babel if transforming any generator functions (and async functions since they are internally transformed to generators first). The most popular version of the tool is 4.5. Unpkg for Mac lies within System Tools, more precisely System Optimization. The actual developer of this free software for Mac is timdoug. unpkg 4.8 for Mac can be downloaded from our software library for free. After removing any async code, regenerator-runtime is no longer bundled at all. The app preserves the integrity of components with automated analysis and separation. In stats.html you can see that regenerator-runtime is imported by lib/mocha.js and lib/runner.js which happen to be the only modules using async functions.Since the repo has an NPM package, we can browse it on unpkg. To my knowledge, it's the most extensive icon repository on Github that has 5k+ icons. The offending Function("return this") is gone if async/ await isn't used. Recently, I discovered that I can use the library and unpkg to quickly include an icon available on Github.You will notice two important differences: Then build the bundle before and after doing so. If in doubt just remove any async & await statements from lib/mocha.js and lib/runner.js (don't bother to keep the code functional as long as it can still be parsed). The basics The details Resolves Proposed Changes Changes mocha tests to use node modules instead of unpkg. I'm starting to doubt that the root cause is the use of async/await. ![]() Maybe who wrote that blog post can confirm? I can only assume that this it a typo in the blog post. 8.1.0 and 8.1.3 work fine and don't include the offending code from regenerator-runtime. There are no other projects in the npm registry using web3xs. Start using web3xs in your project by running npm i web3xs. Latest version: 1.2.9, last published: 3 years ago. But I just double checked, and this regression was introduced in 8.2.0. Ethereum JavaScript API wrapper repository. This PR states, that v8.1.3 is working, above link says v8.1.0 isn't working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |