gecko-dev/devtools/client/shared/webpack
Brian Grinstead 057167f7eb Bug 1425552 - Move clearOutput and clearPrivateMessages from the jsterm and onto the WebConsoleFrame;r=nchevobbe
MozReview-Commit-ID: 9lJW7qt64DT

--HG--
extra : rebase_source : 1a331fb42429206688ac5c980a2915c1c7d48157
2018-06-02 16:44:08 -07:00
..
shims Bug 1425552 - Move clearOutput and clearPrivateMessages from the jsterm and onto the WebConsoleFrame;r=nchevobbe 2018-06-02 16:44:08 -07:00
README.md Bug 1382605 - Fix 6 tests failures on devtools/client/shared due the EventEmitter refactoring r=nchevobbe 2018-03-07 10:17:03 +01:00
moz.build Bug 1403489 - remove special loader rule for devtools/shared/platform;r=tromey 2017-09-27 12:38:23 +02:00
rewrite-browser-require.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
rewrite-css-logic-importer.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
rewrite-event-emitter.js Bug 1454696 - Run eslint --fix for prefer-const;r=yulia 2018-06-01 12:36:09 +02:00
rewrite-lazy-getter.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
rewrite-lazy-require.js Bug 1454696 - Run eslint --fix for prefer-const;r=yulia 2018-06-01 12:36:09 +02:00
rewrite-raw.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
rewrite-react-redux.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
rewrite-sdk-lazy-require.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
theme-loader.js Bug 1454696 - Run eslint --fix for prefer-const;r=yulia 2018-06-01 12:36:09 +02:00

README.md

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