Search code examples
javascriptjaggery-js

how to exceeds 64K limit using jaggery


I am using jaggery. I have a page very big (HTML and jaggery) and I receive:

Generated bytecode for method exceeds 64K limit

I need know if exist any way to pass this restriction.


Solution

  • This is due to a limitation on the Rhino Engine. Jaggery uses Rhino to compile Js files into Java bytecodes. On the latest Jaggery this should be solved.

    As an alternative you could try separating your single file into multiple files and use require keyword to import.