MCPcopy
hub / github.com/meteor/meteor / merge

Method merge

tools/isobuild/build-plugin.js:162–175  ·  view source on GitHub ↗
(otherSet, options = {})

Source from the content-addressed store, hash-verified

160 // and singlePackage. If arch is set, skips SourceProcessors that
161 // don't match it.
162 merge(otherSet, options = {}) {
163 const { arch } = options;
164 buildmessage.assertInJob();
165 otherSet.allSourceProcessors.forEach((sourceProcessor) => {
166 if (! arch || sourceProcessor.relevantForArch(arch)) {
167 this.addSourceProcessor(sourceProcessor);
168 }
169 });
170 _.each(otherSet._legacyHandlers, (info, extension) => {
171 const { handler, packageDisplayName, isTemplate, archMatching } = info;
172 this.addLegacyHandler(
173 {extension, handler, packageDisplayName, isTemplate, archMatching});
174 });
175 }
176
177 // Note: Only returns SourceProcessors, not legacy handlers.
178 getByExtension(extension) {

Callers 15

_loadLocalPackageMethod · 0.45
_checkUpToDateMethod · 0.45
compiler.jsFile · 0.45
getActivePluginPackagesFunction · 0.45
isopack.jsFile · 0.45
_emitResourcesMethod · 0.45
bundler.jsFile · 0.45
mergeAppWatchSetsFunction · 0.45
writeClientTargetFunction · 0.45

Calls 4

addSourceProcessorMethod · 0.95
addLegacyHandlerMethod · 0.95
eachMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected