refact js

This commit is contained in:
pengfei.zhou 2019-07-22 13:52:30 +08:00
parent bdb5a12735
commit 6b0b98a0ad
4 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import { Text, Alignment, Color, VLayout, Panel, log, logw, loge } from "./index"
import { NativeCall } from "./src/ui/panel";
import { NativeCall, Text, Alignment, Color, VLayout, Panel, log, logw, loge } from "./index"

View File

@ -14,7 +14,6 @@ export default [
sourceMap: true,
plugins: [
resolve({ jsnext: true, main: true }),
commonjs()
]
},
{
@ -26,7 +25,7 @@ export default [
sourceMap: true,
plugins: [
resolve({ jsnext: true, main: true }),
]
],
},
{
input: "build/demo.js",

View File

@ -1,4 +1,5 @@
import { Context } from "./sandbox";
require('reflect-metadata');
declare global {
const context: Context;

View File

@ -1,6 +1,5 @@
import { Color, GradientColor } from "../util/color"
import { Modeling, Model, obj2Model } from "../util/types";
import "reflect-metadata"
import { uniqueId } from "../util/uniqueId";
import { loge } from "../util/log";