musescore-downloader/rollup.config.js

27 lines
589 B
JavaScript
Raw Normal View History

2019-11-03 19:13:06 +00:00
import typescript from "rollup-plugin-typescript"
import fs from "fs"
import { version } from "./package.json"
let bannerText = fs.readFileSync("./src/meta.js", "utf-8")
bannerText = bannerText.replace("%VERSION%", version)
export default {
input: "src/main.ts",
output: {
file: "dist/main.js",
format: "iife",
banner: bannerText,
2019-11-03 19:27:47 +00:00
sourcemap: false,
2019-11-03 19:13:06 +00:00
},
plugins: [
typescript({
target: "ES6",
2019-11-03 19:27:47 +00:00
sourceMap: false,
2019-11-03 19:13:06 +00:00
lib: [
"ES6",
"dom"
],
})
]
}