src/to-javascript.js
function makeBundleJS(psModule) {
  const bundleOutput = psModule.options.bundleOutput;

  const name = psModule.name;

  const srcDir = psModule.srcDir;

  const escaped = jsStringEscape(path.relative(srcDir, bundleOutput));

  const result = `module.exports = require("${escaped}")["${name}"]`;

  return Promise.resolve(result);
}
function makeBundleJS(psModule) {
  const bundleOutput = psModule.options.bundleOutput;

  const name = psModule.name;

  const srcDir = psModule.srcDir;

  const escaped = jsStringEscape(path.relative(srcDir, bundleOutput));

  const result = `module.exports = require("${escaped}")["${name}"]`;

  return Promise.resolve(result);
}
function makeBundleJS ( psModule ) { const bundleOutput = psModule . options . bundleOutput ; const name = psModule . name ; const srcDir = psModule . srcDir ; const escaped = jsStringEscape ( path . relative ( srcDir , bundleOutput ) ) ; const result = ` ${ escaped } ${ name } ` ; return Promise . resolve ( result ) ; }
Reference the bundle.
Reference the bundle .