aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/webpack.config.js
blob: 71239d9e9684a84970d19719bc91f2f8c2aebb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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',
  },
};