Files
firefox/devtools/client/shared/webpack
Zhang Junzhi 9470148fb1 Bug 1448553 - Part 2: Decodeds Punycode-encoded international domain names and URI-encoded filenames in the Web Console so that they are displayed as human-readable Unicode text. r=nchevobbe
The Punycode-encoded international domain names and URI-encoded filenames are
human-unreadable, so they should be displayed as human-readable Unicode text.
This commit decodes this kind of names in the Web Console.

MozReview-Commit-ID: 8AVLkdaQOh6
2018-04-02 15:23:22 +08:00
..

Webpack Support

This directory contains modules intended to support and customize DevTools source bundling.

DevTools use Webpack to generate bundles for individual tools, which allow e.g. running them on top of the Launchpad (within a browser tab).

Custom loaders implemented in this directory are mostly used to rewrite existing code, so it's understandable for Webpack.

For example:

The following piece of code is using lazyRequireGetter that is unknown to Webpack.

loader.lazyRequireGetter(this, "EventEmitter",
  "devtools/shared/event-emitter");

In order to properly bundle devtools/shared/event-emitter module the code needs to be translated into:

let EventEmitter = require("devtools/shared/event-emitter");

See more in rewrite-lazy-require