Skip to content

bundling pubads for devtools#9936

Merged
connorjclark merged 1 commit into
dtpluginfrom
dtplugin-local
Nov 9, 2019
Merged

bundling pubads for devtools#9936
connorjclark merged 1 commit into
dtpluginfrom
dtplugin-local

Conversation

@connorjclark

@connorjclark connorjclark commented Nov 7, 2019

Copy link
Copy Markdown
Collaborator

Rolling this patch (combined with #9377) is confirmed to work in DevTools.

Basically, just expose plugin modules by their regular, normalized paths (sans any relative path components or node_modules). Then directly require plugins if we are in devtools (skip the custom resolving we do).

@brendankenny to figure out if this is the best approach :)

Comment thread clients/devtools-entry.js
// Default to 'info' logging level.
flags.logLevel = flags.logLevel || 'info';
flags.channel = 'devtools';
global.devtools = true;

@brendankenny brendankenny Nov 7, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, yes, this is terrible :P but at least it works!

I'll play around with it and see what I can do, but I think you're right that require.resolve() just fundamentally isn't going to work for this...

devtools-bot pushed a commit to ChromeDevTools/devtools-frontend that referenced this pull request Nov 8, 2019
Lighthouse master has breaking pre-6.0 changes, so we are cherry-picking a few things on top of 5.6.0.

Cherry-picks from master:

- d53284cf12e680cbe6a12429cc1c6c4219e7ef43 icu error
- 466bd6f79e57950d736de5edfa9642a40f1100fd verbose i18n
- 7c16d346593d86b33945d75a996829e1a25b4fed flatten

PRs not yet in master, but merged into 5.7.0::

- GoogleChrome/lighthouse#9377 internalDisableDeviceScreenEmulation
- GoogleChrome/lighthouse#9936 Bundling pubads

Screenshot: https://imgur.com/a/XuHkgWk

Bug: 772558
Change-Id: I4a03965ec879119a88faf40dbdca471a9a33e794
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1900472
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
babot pushed a commit to binaryage/dirac that referenced this pull request Nov 8, 2019
Lighthouse master has breaking pre-6.0 changes, so we are cherry-picking a few things on top of 5.6.0.

Cherry-picks from master:

- d53284cf12e680cbe6a12429cc1c6c4219e7ef43 icu error
- 466bd6f79e57950d736de5edfa9642a40f1100fd verbose i18n
- 7c16d346593d86b33945d75a996829e1a25b4fed flatten

PRs not yet in master, but merged into 5.7.0::

- GoogleChrome/lighthouse#9377 internalDisableDeviceScreenEmulation
- GoogleChrome/lighthouse#9936 Bundling pubads

Screenshot: https://imgur.com/a/XuHkgWk

Bug: 772558
Change-Id: I4a03965ec879119a88faf40dbdca471a9a33e794
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1900472
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
@connorjclark connorjclark merged commit 55839fd into dtplugin Nov 9, 2019
@connorjclark connorjclark deleted the dtplugin-local branch November 9, 2019 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants