How to use the systemjs.baseURL function in systemjs

To help you get started, we’ve selected a few systemjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LivelyKernel / lively.next / flatn / tools / build-cjs.js View on Github external
.map((ea, i) => {
      const moduleMarker = ea.id.slice(System.baseURL.length);
      return (
        `// >>> ${moduleMarker}\n` +
        toCjsSource(
          ea,
          moduleImports[i],
          moduleExports[i],
          moduleSources[i],
          moduleAsts[i],
          modules
        ) +
        `// <<< ${moduleMarker}\n`
      );
    })
    .join("\n");