You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable preprocessing or pre-js/post-js files #21226
There are time when we it would be really nice to use the preprocessor in pre/post-js files.
I enabled this in #18525, but it got reverted in #19006 because not all JS files are pre-processor safe. For example, it turns out that using private JS fields confuses the pre-processor because they start with hash symbol (#). You can also imagine JS files that have {{{ or # embedded in strings.
So, we need to find a way to enable the pre-processor, but perhaps not by default? Some kind of opt-in mechansim.
Options:
A new set of arguments such as --pre-js-processed= / --post-js-processed=?
Some kind of marker at the top of the file? Something like use strict;? e.g. use preprocessor;?
Activity
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC
Re-enable preprocessing of pre/post JS file. NFC (#21227)
Merge upstream 3.1.56 (#64)