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
2019-11-11 16:56:24 +08:00

39 lines
896 B
JavaScript

const path = require('path')
const fs = require('fs')
import resolve from 'rollup-plugin-node-resolve'
export default [
{
input: "build/index.runtime.js",
output: {
name: "doric",
format: "iife",
file: "bundle/doric-sandbox.js",
},
plugins: [
resolve({ mainFields: ["jsnext"] }),
]
},
{
input: "build/index.js",
output: {
format: "cjs",
file: "bundle/doric-lib.js",
},
plugins: [
resolve({ mainFields: ["jsnext"] }),
],
external: ['reflect-metadata']
},
{
input: "build/index.debug.js",
output: {
format: "cjs",
file: "bundle/doric-vm.js",
},
plugins: [
resolve({ mainFields: ["jsnext"] }),
],
external: ['ws']
},
]