async function shared_esm(task, opts) {
  await task
    .source('src/shared/**/*.+(js|ts|tsx)', {
      ignore: [
        'src/shared/**/{amp,config,constants,dynamic,app-dynamic,head,runtime-config}.+(js|ts|tsx)',
        '**/*.test.d.ts',
        '**/*.test.+(js|ts|tsx)',
      ],
    })
    .swc('client', { dev: opts.dev, esm: true })
    .target('dist/esm/shared')
}
/{amp,config,constants,dynamic,app-dynamic,head,runtime-config}.+(js|ts|tsx)',
        '*