Open SEAPUNK opened 8 years ago
I will do this by creating a babel plugin.
Nah, fuck that. I'll write a webpack loader instead, and mark out the lines which are debug lines.
Prereq: #60
Marked the debug lines.
The browser builds without debug lines now. I'll soon create a new packaging system that will also do the same for the nodejs builds.
Or.. we could leave the debug lines in. Instead of creating the strings, we can just do string formatting, which is much more efficient.
A good idea at a later time would be to add another step to the build process where we build two different files: One with debug lines and one without.
I'm thinking of writing my own module/CLI script that does just that.
Land this change in 0.8.3.