Closed cptx032 closed 3 years ago
Hi! I've found that babel needs the filename argument to compile from stdin as source. So what I do was to create a new compiler with:
from static_precompiler.compilers import Babel
class InlineBabel(Babel):
name = "inlinebabel"
def get_extra_args(self, *args, **kwargs):
return super(InlineBabel, self).get_extra_args(
*args, **kwargs
) + ["-f", "source"]
That worked for me
Hello! When I do, in my django template file:
I'm getting:
Looks like the way the script is passed to babel is not working. How can I fix that?
My
.babelrc
My
settings.py
My babel version:
7.12.10 (@babel/core 7.12.10)
My Node version:v15.5.1
My Django Version:1.11.27
My Python Version:2.7
Thanks for your time!