feat:use local data

This commit is contained in:
pengfei.zhou
2020-03-03 18:58:53 +08:00
committed by osborn
parent ef77d5ec95
commit 15ce9cb6ba
4 changed files with 1826 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import bundles from './build/index'
import fs from 'fs'
import path from 'path'
import buble from '@rollup/plugin-buble';
import json from "@rollup/plugin-json"
function readDirs(dirPath, files) {
if (fs.statSync(dirPath).isDirectory()) {
@@ -49,6 +50,7 @@ export default
plugins: [
resolve({ mainFields: ["jsnext"] }),
commonjs(),
json(),
],
external: ['reflect-metadata', 'doric'],
onwarn: function (warning) {
@@ -70,6 +72,7 @@ export default
plugins: [
resolve({ mainFields: ["jsnext"] }),
commonjs(),
json(),
buble({
transforms: { dangerousForOf: true }
}),