import typescript from 'rollup-plugin-typescript'

export default {
    entry: "src/main.ts",
    dest: "dist/main.js",
    format: 'cjs',
    plugins: [
        typescript({
            typescript: require('typescript'),
        })
    ]
}
import typescript from 'rollup-plugin-typescript'

export default {
    entry: "src/main.ts",
    dest: "dist/main.js",
    format: 'umd',
    moduleName: 'course-scheduler',
    plugins: [
        typescript({
            typescript: require('typescript'),
        })
    ]
}
Use UMD bundling format