Open jgranick opened 5 years ago
@jgranick can you try using single quotes? Currently we take the entire value and put it between double-quotes.
I did try
If memory serves, either way it ends up looking something like:
--macro "addMetadata(@:build(com.test.Hack.build())", Math)
...and breaking the build
Agh ok the bug is in the tokenisation library we're using to parse the arguments.
Here's something that works (pre-quoted using double quotes, single quotes inside):
--macro "addMetadata('@:keep', 'Test1')"
The HXML compiles properly without using
haxe-loader
but fails due to a macro call with multiple sets of quotes:This would be resolved with: https://github.com/jasononeil/webpack-haxe-loader/issues/31
This is probably also related to: https://github.com/jasononeil/webpack-haxe-loader/issues/28