diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 16:48:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 15:31:03 -0700 |
commit | 0af083b4a07ea912f7d6e1b558fde0e38086da06 (patch) | |
tree | 75eee8dba10ec4b6b3b0f9b2df4a5755ada23780 /tools | |
parent | f2178dcdd562f49c9f668c6afae20386168c72b6 (diff) |
start to parse imports
Diffstat (limited to 'tools')
-rw-r--r-- | tools/js_optimizer.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py index 58b0af6d..7cefe90a 100644 --- a/tools/js_optimizer.py +++ b/tools/js_optimizer.py @@ -19,6 +19,7 @@ WINDOWS = sys.platform.startswith('win') DEBUG = os.environ.get('EMCC_DEBUG') +import_sig = re.compile('( *)var ([_\w$]+) *=.*;') func_sig = re.compile('( *)function ([_\w$]+)\(') class Minifier: |