File: compile.js

package info (click to toggle)
node-url-loader 4.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,348 kB
  • sloc: javascript: 1,338; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
export default (compiler) => {
  return new Promise((resolve, reject) => {
    compiler.run((error, stats) => {
      if (error) {
        return reject(error);
      }

      return resolve(stats);
    });
  });
};