@ajay-testing/forge-bundler

Default bundler for Forge apps

Usage no npm install needed!

<script type="module">
  import ajayTestingForgeBundler from 'https://cdn.skypack.dev/@ajay-testing/forge-bundler';
</script>

README

Default bundler for Forge apps

API

import { bundle, watch } from '@atlassian/forge-cli-bundler';

// bundle example
const { output, sourceMap } = await bundle(endpoint);

// watch example
const monitor = watch(endpoint, (err, output) => {
  if (err) {
    log(err);
  } else {
    // ...
  }
});

monitor.stop();