MCPcopy Index your code
hub / github.com/toeverything/AFFiNE / build

Method build

tools/cli/src/bundle.ts:253–264  ·  view source on GitHub ↗
(pkg: Package, bundler: Bundler = getBundler())

Source from the content-addressed store, hash-verified

251 }
252
253 static async build(pkg: Package, bundler: Bundler = getBundler()) {
254 if (bundler === 'rspack' && !isRspackSupportedPackageName(pkg.name)) {
255 return BundleCommand.buildWithWebpack(pkg);
256 }
257
258 switch (bundler) {
259 case 'webpack':
260 return BundleCommand.buildWithWebpack(pkg);
261 case 'rspack':
262 return BundleCommand.buildWithRspack(pkg);
263 }
264 }
265
266 static async buildWithWebpack(pkg: Package) {
267 process.env.NODE_ENV = 'production';

Callers 4

executeMethod · 0.45
showFunction · 0.45
buildLayersFunction · 0.45
runFunction · 0.45

Calls 4

getBundlerFunction · 0.90
buildWithWebpackMethod · 0.80
buildWithRspackMethod · 0.80

Tested by

no test coverage detected