summaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js')
-rw-r--r--src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js b/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js
new file mode 100644
index 0000000000..71239d9e96
--- /dev/null
+++ b/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js
@@ -0,0 +1,13 @@
+// Minimal webpack config to package a minified JS bundle (including
+// dependencies) for execution in a <script> tag in the browser.
+module.exports = {
+ entry: './index.js',
+ output: {
+ path: __dirname, // Directory containing this webpack.config.js file.
+ filename: 'd3.js',
+ // Arbitrary; many module formats could be used, just keeping Universal
+ // Module Definition as it's the same as what we used in a previous
+ // version.
+ libraryTarget: 'umd',
+ },
+};