bundling and minification - dart, reflection and source maps? -


I have a proxy object that can be used to relocate noSuchMethod to relocate invocations to other objects , But the proxy object is present in a minified / obscure environment, and the objects are included in the inconclusions in a non-minified / obfuscated state, so when the name of the method to be renamed goes to the non-minimal environment So the name does not match Class I is MyFile.dart.js.map file, what is a simple algorithm to parse it and get by using the name of the source map of the original charge back the name Minified? Or is there a library better than that already in dart?

You can use the name of a symbol to get real. In the case of noSuchMethod :

  noSuchMethod (invite invocation) {string member = mirrors .getName (invocation.memberName); }    

Comments

Popular posts from this blog

sql - Return Function using Cursor -

javascript - Is there any way to add a new parameter to a function programmatically? -

sql server - How to use pivot in this table -