Angular2(带有Typescript)用prepack编译(来自Facebook)

时间:2017-05-09 21:15:11

标签: facebook angular typescript

我有一个带Angular2(Typescript)的项目,我想在bundle.js.min上使用预包装(https://prepack.io/)。

运行时:

prepack bundle.min.js --out bundle.pre.js

输出结果为:

not an object
TypeError
at ParamDecorator (bundle.min.js:16:31440)
at bundle.min.js:3:23281
at bundle.min.js:3:23573
at call (native)
at s (bundle.min.js:2:547)
at bundle.min.js:2:606
at bundle.min.js:2:17723
at call (native)
at s (bundle.min.js:2:547)
at bundle.min.js:2:606
at bundle.min.js:2:4217
at call (native)
at s (bundle.min.js:2:547)
at bundle.min.js:2:606
at bundle.min.js:2:1316
at call (native)
at s (bundle.min.js:2:547)
at bundle.min.js:2:606
at bundle.min.js:3:11902
at call (native)
at s (bundle.min.js:2:547)
at e (bundle.min.js:2:722)
at bundle.min.js:2:303
at bundle.min.js:2:273
at bundle.min.js:2:4
at bundle.min.js:1:1

由于预包装是新的,它可能是一个预包装错误,但我认为在StackOverflow上有关于它的问题很重要,我搜索了一下,并没有任何关于。

希望有人找到答案。

提前致谢。

0 个答案:

没有答案