code: function baseConfig() {
    return {
      output: {
        format: 'umd',
        sourcemap: true,
        banner: `/*!\n * Name: ${packageInfo.name}\n * Version: ${packageInfo.version}\n * Author: ${packageInfo.author}\n */`,
      },
      plugins: [
        resolve({
          jsnext: true,
          main: true,
          browser: true,
        }),
        commonjs({
          extensions: [
            '.js',
            '.jsx',
            '.json',
            // '.vue'
          ],
        }),
      ],
    }
  }
docs: const isDev = process.env.NODE_ENV === 'development'