MCPcopy
hub / github.com/meteor/meteor / addSourceProcessor

Method addSourceProcessor

tools/isobuild/build-plugin.js:106–114  ·  view source on GitHub ↗
(sp)

Source from the content-addressed store, hash-verified

104 }
105
106 addSourceProcessor(sp) {
107 buildmessage.assertInJob();
108 this._addSourceProcessorHelper(sp, sp.extensions, this._byExtension, '*.');
109 this._addSourceProcessorHelper(sp, sp.filenames, this._byFilename, '');
110 // If everything conflicted, then the SourceProcessors will be in
111 // allSourceProcessors but not any of the data structures, but in that case
112 // the caller should be checking for errors anyway.
113 this.allSourceProcessors.push(sp);
114 }
115 _addSourceProcessorHelper(sp, things, byThing, errorPrefix) {
116 buildmessage.assertInJob();
117

Callers 2

mergeMethod · 0.95
isopack.jsFile · 0.80

Calls 1

Tested by

no test coverage detected