function setSource(loader, packageId, name, source, language, callback) {
  transpileAndRegisterForModule(loader, {
    name: packageId,
    base: '',
    components: [],
    runtime: 'noflo',
  }, {
    name,
  }, source, language)
    .then(() => {
      callback(null);
    }, callback);
}
@param {import("../ComponentLoader").ComponentLoader} loader
@param {string} packageId
@param {string} name
@param {string} source
@param {string} language
@param {TranspileCallback} callback
@returns {void}