webpack/test/watchCases/plugins/automatic-prefetch-plugin-9485/delayed.js

10 lines
234 B
JavaScript

module.exports = function (source) {
expect(source).toMatch(/^\}\)\]/);
this.cacheable(false);
return new Promise(resolve => {
setTimeout(() => {
resolve("module.exports = require('./foo/' + WATCH_STEP);");
}, 500);
});
};