Created
July 23, 2019 14:01
-
-
Save pyrsmk/c66ef13843ac11fe6748aef2f8f18003 to your computer and use it in GitHub Desktop.
Rollup task for Just
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rollup = require('rollup') | |
const typescript = require('rollup-plugin-typescript2') | |
const prepack = require('rollup-plugin-prepack-up') | |
module.exports = async options => { | |
await rollup.rollup({ | |
input: options.input, | |
plugins: [ | |
typescript({ useTsconfigDeclarationDir: true }), | |
prepack(), | |
], | |
}).then(bundler => { | |
bundler.write({ | |
file: options.output, | |
format: 'umd', | |
name: options.name, | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment