code: function configGen() {
    return {
      input: 'src/index.ts',
      output: {
        file: 'dist/web/buttplug.js',
        format: 'iife',
        name: "Buttplug"
      },
      plugins: [
        nodeResolve({
          jsnext: true,
          main: true,
          extensions: [ '.ts', '.js', '.json' ],
          browser: true
        }),
        typescript({ tsconfigOverride: { compilerOptions: { module: "ES2015" } } }),
        json(),
        nodeBuiltins(),
        nodeGlobals(),
        commonjs({
          // non-CommonJS modules will be ignored, but you can also
          // specifically include/exclude files
          include: ['../../node_modules/**', './node_modules/**'],  // Default: undefined
        }),
      ]
    };
  }
docs: Generate our base config object out of a function return, so we don't have to worry about doing copies/clones.