tacker

a simple web bundler
git clone https://tongong.net/git/tacker.git
Log | Files | Refs | README

a.js (360B)


      1 // </script>
      2 let testm = require("./b.js")
      3 require("./c.js")
      4 require("./scripttest");
      5 
      6 console.log("</script> tags work!");
      7 
      8 let r = "this require('b.js') will not be macro-expanded.";
      9 console.log("hi from an imported script!");
     10 
     11 function a() {
     12     // this should throw a warning
     13     console.log(require("test"));
     14 };
     15 
     16 console.log(testm);
     17 window.testm = testm;