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 — add test · webpack/webpack@a534dfd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/configCases/source-map/source-map-with-profiling-plugin
    • index.js
    • test.js
    • webpack.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/configCases/source-map/source-map-with-profiling-plugin/index.js‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
it("bundle0 should include sourcemapped test.js", function() {
2+
var fs = require("fs");
3+
var source = fs.readFileSync(__filename + ".map", "utf-8");
4+
var map = JSON.parse(source);
5+
map.sources.should.containEql("webpack:///./test.js");
6+
});
7+
8+
require.include("./test.js");
Collapse file

‎test/configCases/source-map/source-map-with-profiling-plugin/test.js‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var foo = {};
2+
3+
module.exports = foo;
Collapse file

‎test/configCases/source-map/source-map-with-profiling-plugin/webpack.config.js‎

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
var webpack = require("../../../../");
2+
var path = require("path");
3+
var os = require("os");
4+
5+
module.exports = {
6+
node: {
7+
__dirname: false,
8+
__filename: false
9+
},
10+
entry: {
11+
bundle0: ["./index.js"]
12+
},
13+
output: {
14+
filename: "[name].js"
15+
},
16+
plugins: [
17+
new webpack.debug.ProfilingPlugin({
18+
outputPath: path.join(os.tmpdir(), "events.json")
19+
})
20+
],
21+
devtool: "source-map"
22+
};

0 commit comments

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