const {Runtime} = require('@parcel/plugin');
const path = require('path');

module.exports = new Runtime({
  apply() {
    return [{
      filePath: path.join(__dirname, "MockRuntime.js"),
      code: `
        import { used } from 'test';

        // make sure 'used' is not treeshaken
        f(used);
      `,
      isEntry: true
    }]
  }
});
