code: function _buildLib (DEST, platform) {
    let output = []
    let istanbul
    if (platform === 'browser' || platform === 'all') {
      output.push({
        file: DEST + 'texture.js',
        format: 'umd',
        name: 'texture',
        sourcemapRoot: __dirname,
        sourcemapPrefix: 'texture',
        globals: {
          'substance': 'substance',
          'katex': 'katex',
          'vfs': 'vfs'
        }
      })
    }
    if (platform === 'nodejs' || platform === 'all') {
      output.push({
        file: DEST + 'texture.cjs.js',
        format: 'cjs'
      })
    }
    if (platform === 'es' || platform === 'all') {
      output.push({
        file: DEST + 'texture.es.js',
        format: 'es'
      })
    }
    b.js('./index.js', {
      output,
      external: ['substance', 'katex', 'vfs'],
      istanbul
    })
  }
docs: /* HELPERS