@makano/rew 1.2.90 → 1.2.901
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -229,10 +229,10 @@ const includeFile = (includeContent, options) => {
|
|
|
229
229
|
straceLog('==> INCLUDE PACKAGE', filename);
|
|
230
230
|
if(existsSync(pathname)) r = _inc(pathname);
|
|
231
231
|
}
|
|
232
|
-
if(
|
|
233
|
-
return
|
|
232
|
+
if(dontInclude){
|
|
233
|
+
return 'intentional-nothing';
|
|
234
234
|
}
|
|
235
|
-
return
|
|
235
|
+
return r;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
function useImp(token, options){
|
|
@@ -518,7 +518,7 @@ function compileRewStuff(content, options) {
|
|
|
518
518
|
const includeContent = token.value.split(' ')[1].trim() || '';
|
|
519
519
|
const r = includeFile(includeContent, options);
|
|
520
520
|
if(r){
|
|
521
|
-
result += r;
|
|
521
|
+
result += r == 'intentional-nothing' ? '' : r;
|
|
522
522
|
aliases = {
|
|
523
523
|
...aliases,
|
|
524
524
|
...execOptions._syntaxAliases
|