GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — convert test case to normal function for node.js 6 support · webpack/webpack@56feccc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/cases/loaders/resolve
    • loader.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/cases/loaders/resolve/loader.js‎

Copy file name to clipboard
+10-5Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
const path = require("path");
2-
module.exports = async function() {
2+
module.exports = function() {
33
const resolve1 = this.getResolve();
44
const resolve2 = this.getResolve({
55
extensions: [".xyz", ".js"]
66
});
7-
return `module.exports = ${JSON.stringify({
8-
one: path.basename(await resolve1(__dirname, "./index")),
9-
two: path.basename(await resolve2(__dirname, "./index")),
10-
})}`;
7+
return Promise.all([
8+
resolve1(__dirname, "./index"),
9+
resolve2(__dirname, "./index")
10+
]).then(([one, two]) => {
11+
return `module.exports = ${JSON.stringify({
12+
one: path.basename(one),
13+
two: path.basename(two),
14+
})}`;
15+
});
1116
};

0 commit comments

Comments
0 (0)
You are visitor 01402622 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.