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, Text, Alignment, Color, VLayout, Panel, log, logw, loge } from "./index"
|
||||||
import { NativeCall } from "./src/ui/panel";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ export default [
|
|||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
resolve({ jsnext: true, main: true }),
|
resolve({ jsnext: true, main: true }),
|
||||||
commonjs()
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -26,7 +25,7 @@ export default [
|
|||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
resolve({ jsnext: true, main: true }),
|
resolve({ jsnext: true, main: true }),
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: "build/demo.js",
|
input: "build/demo.js",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Context } from "./sandbox";
|
import { Context } from "./sandbox";
|
||||||
|
require('reflect-metadata');
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
const context: Context;
|
const context: Context;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Color, GradientColor } from "../util/color"
|
import { Color, GradientColor } from "../util/color"
|
||||||
import { Modeling, Model, obj2Model } from "../util/types";
|
import { Modeling, Model, obj2Model } from "../util/types";
|
||||||
import "reflect-metadata"
|
|
||||||
import { uniqueId } from "../util/uniqueId";
|
import { uniqueId } from "../util/uniqueId";
|
||||||
import { loge } from "../util/log";
|
import { loge } from "../util/log";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user