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 — Fix nits, block `require` to prevent false positive · webpack/webpack@14ef010

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/configCases/web/node-source
    • index.mjs
    • webpack.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/configCases/web/node-source/index.mjs‎

Copy file name to clipboard
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
global
1+
// Block `require`, but keep Webpack from trying to work around it.
2+
eval("require = undefined")
3+
4+
it("should compile fine", () => {
5+
global
6+
})
Collapse file

‎test/configCases/web/node-source/webpack.config.js‎

Copy file name to clipboardExpand all lines: test/configCases/web/node-source/webpack.config.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
target: "web",
3-
entry: "index.mjs",
3+
entry: "./index.mjs",
44
performance: {
55
hints: false
66
},

0 commit comments

Comments
0 (0)
You are visitor 01402639 — 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.