When minifying code containing import. (such as import.meta), minify throws an error.
For example if you give it:
You get this error:
expected String, Identifier, *, or { instead of . in import statement on line 1 and column 7
1: import.meta;
^
However, similar syntax with any other identifier works fine. For example:
produces:
I also believe the test here should be simplified from (import.meta) to import.meta rather than being kept the same. Is there a reason for keeping the parenthesis?
When minifying code containing
import.(such asimport.meta), minify throws an error.For example if you give it:
You get this error:
However, similar syntax with any other identifier works fine. For example:
produces:
I also believe the test here should be simplified from
(import.meta)toimport.metarather than being kept the same. Is there a reason for keeping the parenthesis?