function ignoreBuiltins(opts = {}) {
  let builtinList = [...builtin];
  if (opts.exclude) {
    builtinList = builtinList.filter(b => !opts?.exclude?.includes(b));
  }
  const builtinRegexp = new RegExp(`^(${builtinList.join('|')})\\/?(.+)?`);
  return {
    name: 'ignore-builtins',
    setup(build) {
      build.onResolve({filter: builtinRegexp}, (args) => {
        if (args.path.match(builtinRegexp)) {
          return {path: args.path, namespace: 'ignore-builtins'};
        }
      });
      build.onLoad({filter: builtinRegexp, namespace: 'ignore-builtins'}, async () => {
        return {contents: ''};
      });
    },
  };
}
@param {{exclude?: string[]}=} opts
@return {esbuild.Plugin}