Meettya / clinch

YA CommonJS to browser packer tool, well-suited for widgets by small overhead and big app by smart settings and fast process.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add // clinch require begin\end statement processor

Meettya opened this issue · comments

To dramatically speed up compilation time I'l to plan add 'chittng' statement for 'require' searching processor.
The each file will be watched (with RegExp) for string (strictly!!! - comment at start of string)
// clinch require begin
and only content till
// clinch require end
will be parsed to find out 'require' statiment in it.

If statement not be founded - all file will be parsed, as it worked now.

Oh! also this pair may be used on standalone files to suppress parsing process.

Its seems reasonable use one statement pair only, but may be someone have another idea?