code: function createStandardConfig(moduleFormat, productive) {
    return {
      input: 'src/main/js-spec.ts',
  
      output: {
        file: productive
          ? `dist/js-spec.${moduleFormat}.production.js`
          : `dist/js-spec.${moduleFormat}.development.js`,
  
        format: moduleFormat,
        name: 'jsSpec', 
        sourcemap: productive ? false : 'inline',
  
        globals: {
          'js-spec': 'jsSpec',
        }
      },
  
      external: [],
  
      plugins: [
        resolve({
          jsnext: true,
          main: true,
          browser: true,
        }),
        // tslint({
        //}),
        replace({
          exclude: 'node_modules/**',
  
          values: {
            'process.env.NODE_ENV': productive ? "'production'" : "'development'"
          }
        }),
        typescript({
          exclude: 'node_modules/**',
        }),
        productive && (moduleFormat === 'esm' ? terser() : uglifyJS()),
        productive && gzip()
      ],
    }
  }
docs: --- locals -------------------------------------------------------