Chromium Code Reviews
DescriptionAdd option for outputting a deferred loading mapping.
With the option --deferred-map=<file> dart2js will output a json-file
describing which files will get loaded for a given deferred import.
The output looks like:
{
"_comment": "This mapping shows which compiled `.js` files are needed for a given deferred library import.",
"main.dart": {
"name": "mainLibrary",
"imports": {
"lib1": [
"out.js_2.part.js",
"out.js_1.part.js"
],
"lib2": [
"out.js_2.part.js",
"out.js_3.part.js"
],
"lib3": [
"out.js_5.part.js"
],
"lib4": [
"out.js_6.part.js"
]
}
},
"lib1.dart": {
"name": "<unnamed>",
"imports": {
"convert": [
"out.js_4.part.js"
]
}
}
}
BUG=dartbug.com/21869
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=42727
Patch Set 1 #Patch Set 2 : Add test #Patch Set 3 : Whitespace #
Total comments: 8
Patch Set 4 : Address comments #
Total comments: 14
Patch Set 5 : Address comments #Patch Set 6 : Updated format #
Total comments: 4
Patch Set 7 : Fix comments #Patch Set 8 : rebase #Messages
Total messages: 11 (1 generated)
|