ClusterAtlas Posted February 17, 2017 Share Posted February 17, 2017 I'm curious, does pixi-particles really require use of TypeScript? https://github.com/pixijs/pixi-particles Compared to all pixi-related libraries (like pixi-sound, tween, etc), so far this one gave me the most headache so far: - doesn't work with regular require - f's up w/ browserify & jspm Thanks for any answers Edit: basically my question is, is there a way to use it without using TypeScript? Quote Link to comment Share on other sites More sharing options...
xerver Posted February 17, 2017 Share Posted February 17, 2017 Quote I'm curious, does pixi-particles really require use of TypeScript? There is no such thing as a library that requires TypeScript, not sure what would give you that impression. Quote doesn't work with regular require In what way does it not work? Have you tried posting an issue on the repo? Quote f's up w/ browserify & jspm In what way does it not work? Have you tried posting an issue on the repo? Quote Edit: basically my question is, is there a way to use it without using TypeScript? TypeScript compiles to JS, no library *requires* TypeScript. Even the main field points to the built file. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 17, 2017 Share Posted February 17, 2017 Better ask that in "issues" of that repo. @bigtimebuddy is managing it. I assure you, that problem is solvable We have even harder setup in pixi-spine, with demos of how to use it with npm, browserify and webpack. Quote Link to comment Share on other sites More sharing options...
ClusterAtlas Posted February 18, 2017 Author Share Posted February 18, 2017 Thanks Ivan, recently I've just found same issues I'm encountering in the project's repo: https://github.com/pixijs/pixi-particles/issues/11 https://github.com/pixijs/pixi-particles/issues/41 Seems like it only works in some namespace like the cloudkid library/framework (screenshots attached).. any ideas how can I work it out? Regarding the TypeScript though xerver, well lol I thought it's something required because its GitHub Readme only have instructions for TypeScript (screenshot attached below), unlike the pixi-sound library where you can just require then it already works I'm currently checking out the examples now, will update if I ever get it workinggg Quote Link to comment Share on other sites More sharing options...
ClusterAtlas Posted February 18, 2017 Author Share Posted February 18, 2017 Update guys: finally got it working! Realized that since those guys mentioned that it's already browserified, I came to the conclusion that it's something that I shall just include normally in the html file w/ the <script> tag, hence, excluding it (the pixi-particles js / min.js) from the bundling of other libraries. <3 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 18, 2017 Share Posted February 18, 2017 Yep. Some libraries cant be added to bundle. But for pixi-spine we somehow made it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.