summaryrefslogtreecommitdiff
path: root/support/build/aggregate-module.js
blob: 804f5913237955068c5a3aeb9019f9e4d58c937e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const {rollup} = require('rollup');
const nodeResolve = require('rollup-plugin-node-resolve');

rollup({
    input: 'build-es/index.js',
    plugins: [ nodeResolve() ]
})
    .then(( bundle ) => {
        return bundle.write({
            format: 'esm',
            name: 'async',
            file: 'build/async.mjs'
        });
    })
    .catch((err) => { throw err; });