<|start_filename|>bower.json<|end_filename|>
{
  "name": "vaadin-usage-statistics",
  "main": "vaadin-usage-statistics.html",
  "authors": [
    "<NAME>"
  ],
  "license": "Apache-2.0",
  "dependencies": {
    "vaadin-development-mode-detector": "vaadin/vaadin-development-mode-detector#^2.0.0"
  },
  "devDependencies": {
    "web-component-tester": "^6.4.1",
    "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0"
  }
}


<|start_filename|>rollup.config.js<|end_filename|>
import babel from 'rollup-plugin-babel';
import pkg from './package.json';

const config = [
  // Bundle and transpile the sources so that they can be executed
  // in any supported browser. The IIFE format makes it easy to wrap the output
  // into vaadin-dev-mode comments.
  {
    input: 'src/vaadin-usage-statistics.js',
    output: {
      format: 'iife',
      file: 'vaadin-usage-statistics.es5.js',
    },
    plugins: [
      babel({
        // The 'external-helpers' Babel plugin allows Rollup to include every
        // used babel helper just once per bundle, rather than including them in
        // every module that uses them (which is the default behaviour).
        plugins: ['external-helpers'],
        presets: [
          ['env', {
            // Run `npm run browserslist` to see the percent of users covered
            // by this browsers selection
            targets: {
              browsers: pkg.browserslist
            },

            // Instructs Babel to not convert ES modules to CommonJS--that's a
            // job for Rollup.
            modules: false,

            // To see which browsers are targeted, and which JS features are
            // polyfilled, uncomment the next line and run `npm run build`
            // debug: true,
          }]
        ],
      })]
  },
];

export default config;
