[turbolizer] Treeshake d3 library

Bug: v8:7327
Change-Id: I96fa8f6c2dbc9fb3da0be9a8b8d730cc1d1e3415
Reviewed-on: https://chromium-review.googlesource.com/1131456
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54452}
This commit is contained in:
Sigurd Schneider 2018-07-11 08:39:35 +02:00 committed by Commit Bot
parent df7a027fd1
commit b8e3793a8e
4 changed files with 23 additions and 2 deletions

View File

@ -58,7 +58,6 @@
src="right-arrow.png" class="button-input">
</div>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
<script src="https://d3js.org/d3.v5.js" charset="utf-8"></script>
<script src="build/turbolizer.js"></script>
</body>
</html>

View File

@ -290,6 +290,11 @@
"repeat-element": "^1.1.2"
}
},
"builtin-modules": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-2.0.0.tgz",
"integrity": "sha512-3U5kUA5VPsRUA3nofm/BXX7GVHKfxz0hOBAPxXrIvHzlDRkQVqEn6yi8QJegxl4LzOHLdvb7XF5dVawa/VVYBg=="
},
"commander": {
"version": "2.15.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz",
@ -714,6 +719,11 @@
"is-extglob": "^1.0.0"
}
},
"is-module": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
"integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE="
},
"is-number": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz",
@ -907,6 +917,16 @@
"@types/node": "*"
}
},
"rollup-plugin-node-resolve": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.3.0.tgz",
"integrity": "sha512-9zHGr3oUJq6G+X0oRMYlzid9fXicBdiydhwGChdyeNRGPcN/majtegApRKHLR5drboUvEWU+QeUmGTyEZQs3WA==",
"requires": {
"builtin-modules": "^2.0.0",
"is-module": "^1.0.0",
"resolve": "^1.1.6"
}
},
"rollup-plugin-typescript2": {
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.15.1.tgz",

View File

@ -15,6 +15,7 @@
"d3": "^5.5.0",
"pegjs": "^0.10.0",
"rollup": "^0.62.0",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-typescript2": "^0.15.1"
},
"repository": {

View File

@ -3,10 +3,11 @@
// found in the LICENSE file.
import typescript from 'rollup-plugin-typescript2';
import node from 'rollup-plugin-node-resolve';
export default {
entry: "src/turbo-visualizer.ts",
format: "iife",
plugins: [typescript({abortOnError:false})],
plugins: [node(), typescript({abortOnError:false})],
dest: "build/turbolizer.js"
};