Skip to content

How to use excalibur.js and rollup.js? #1729

Answered by eonarheim
mogoh asked this question in Q&A
Discussion options

You must be logged in to vote

@mogoh I pushed up a sub-optimal template https://github.com/excaliburjs/template-ts-rollup, it will be slightly better than this approach because we can control the version of excalibur via npm, but it still brings the entire excalibur source into the bundle. Excalibur's modules in the current state aren't ideal for rollup to consume.

Our upcoming release will switch excalibur to es2015 modules and we can also make use of the package module property to improve this rollup experience https://github.com/rollup/rollup/wiki/pkg.module

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@eonarheim
Comment options

@eonarheim
Comment options

@mogoh
Comment options

Comment options

You must be logged in to vote
2 replies
@eonarheim
Comment options

@eonarheim
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mogoh
Comment options

@kamranayub
Comment options

Answer selected by mogoh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants