-
Bug
-
Resolution: Fixed
-
Blocker
-
4.0.8, 4.1.3, 4.2.1
The cruddy preg_match at the bottom of lib/requirejs.php matches:
preg_match('/define\(\s*(\[|function)/', $js)
|
However, it's perfectly possible for a module to:
- have a correct and valid define ("core/foo", ... line; and to
- have another, totally unrelated, {{static define(config = {}) }} line or similar
We need to make this suck less.