MCPcopy Create free account
hub / github.com/testing-library/user-event / buildEnv

Function buildEnv

scripts/setup.js:107–121  ·  view source on GitHub ↗
(name, file)

Source from the content-addressed store, hash-verified

105}
106
107async function buildEnv(name, file) {
108 process.stdout.write(`Bundling environment "${name}" at ${file}\n`)
109
110 const base = path.basename(file, '.js')
111
112 await esbuild.build({
113 entryPoints: [file],
114 outfile: `${indexDirEnv}/${base}.bundle.js`,
115 bundle: true,
116 sourcemap: 'inline',
117 plugins: [
118 NodeModulesPolyfillPlugin(),
119 ],
120 })
121}

Callers 1

setup.jsFile · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected