This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/js-framework/rollup.config.js

38 lines
876 B
JavaScript
Raw Normal View History

2019-07-17 15:03:31 +08:00
const path = require('path')
const fs = require('fs')
import resolve from 'rollup-plugin-node-resolve'
export default [
{
input: "build/index.runtime.js",
output: {
2019-07-19 10:27:09 +08:00
name: "doric",
2019-07-17 15:03:31 +08:00
format: "iife",
2019-07-19 10:27:09 +08:00
file: "bundle/doric-sandbox.js",
2019-07-17 15:03:31 +08:00
},
plugins: [
resolve({ jsnext: true, main: true }),
]
},
{
input: "build/index.js",
output: {
format: "cjs",
2019-07-19 10:27:09 +08:00
file: "bundle/doric-lib.js",
2019-07-17 15:03:31 +08:00
},
plugins: [
resolve({ jsnext: true, main: true }),
2019-07-22 13:52:30 +08:00
],
2019-07-22 14:36:32 +08:00
external: ['reflect-metadata']
2019-07-17 15:03:31 +08:00
},
2019-10-22 18:01:10 +08:00
{
input: "build/index.debug.js",
output: {
format: "cjs",
file: "bundle/doric-vm.js",
},
plugins: [
resolve({ jsnext: true, main: true }),
]
},
2019-07-17 15:03:31 +08:00
]