UNPKG

metascript

Version:

Sophisticated meta programming in JavaScript, e.g. to build different versions of a library from a single source tree.

12 lines (7 loc) 368 B
console.log(/*?== "included" */); // This will be indented once more: //? if (YEP) include("sub/someotherinclude.js"); // This should say 'undefined' as NOPE is not visible in other files: // //?= typeof NOPE // This should say 'undefined' as filename is not visible in __runProgram: // //?= typeof filename === 'undefined' ? 'undefined' : filename