refact js
This commit is contained in:
parent
bdb5a12735
commit
6b0b98a0ad
@ -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"
|
||||
|
||||
|
||||
|
||||
|
@ -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",
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Context } from "./sandbox";
|
||||
require('reflect-metadata');
|
||||
|
||||
declare global {
|
||||
const context: Context;
|
||||
|
@ -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";
|
||||
|
||||
|
Reference in New Issue
Block a user