chrome-devtools-frontend 1.0.964440 → 1.0.966086
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/devtools_grd_files.gni +11 -5
- package/front_end/core/common/ResolverBase.ts +2 -2
- package/front_end/core/i18n/locales/af.json +55 -22
- package/front_end/core/i18n/locales/am.json +55 -22
- package/front_end/core/i18n/locales/ar.json +55 -22
- package/front_end/core/i18n/locales/as.json +55 -22
- package/front_end/core/i18n/locales/az.json +55 -22
- package/front_end/core/i18n/locales/be.json +55 -22
- package/front_end/core/i18n/locales/bg.json +55 -22
- package/front_end/core/i18n/locales/bn.json +33 -0
- package/front_end/core/i18n/locales/bs.json +53 -20
- package/front_end/core/i18n/locales/ca.json +55 -22
- package/front_end/core/i18n/locales/cs.json +54 -21
- package/front_end/core/i18n/locales/cy.json +55 -22
- package/front_end/core/i18n/locales/da.json +54 -21
- package/front_end/core/i18n/locales/de.json +55 -22
- package/front_end/core/i18n/locales/el.json +55 -22
- package/front_end/core/i18n/locales/en-GB.json +33 -0
- package/front_end/core/i18n/locales/en-US.json +21 -0
- package/front_end/core/i18n/locales/en-XL.json +21 -0
- package/front_end/core/i18n/locales/es-419.json +55 -22
- package/front_end/core/i18n/locales/es.json +55 -22
- package/front_end/core/i18n/locales/et.json +55 -22
- package/front_end/core/i18n/locales/eu.json +33 -0
- package/front_end/core/i18n/locales/fa.json +56 -23
- package/front_end/core/i18n/locales/fi.json +55 -22
- package/front_end/core/i18n/locales/fil.json +55 -22
- package/front_end/core/i18n/locales/fr-CA.json +55 -22
- package/front_end/core/i18n/locales/fr.json +55 -22
- package/front_end/core/i18n/locales/gl.json +55 -22
- package/front_end/core/i18n/locales/gu.json +33 -0
- package/front_end/core/i18n/locales/he.json +55 -22
- package/front_end/core/i18n/locales/hi.json +33 -0
- package/front_end/core/i18n/locales/hr.json +33 -0
- package/front_end/core/i18n/locales/hu.json +55 -22
- package/front_end/core/i18n/locales/hy.json +55 -22
- package/front_end/core/i18n/locales/id.json +55 -22
- package/front_end/core/i18n/locales/is.json +55 -22
- package/front_end/core/i18n/locales/it.json +55 -22
- package/front_end/core/i18n/locales/ja.json +63 -30
- package/front_end/core/i18n/locales/ka.json +55 -22
- package/front_end/core/i18n/locales/kk.json +55 -22
- package/front_end/core/i18n/locales/km.json +55 -22
- package/front_end/core/i18n/locales/kn.json +55 -22
- package/front_end/core/i18n/locales/ko.json +55 -22
- package/front_end/core/i18n/locales/ky.json +55 -22
- package/front_end/core/i18n/locales/lo.json +55 -22
- package/front_end/core/i18n/locales/lt.json +55 -22
- package/front_end/core/i18n/locales/lv.json +55 -22
- package/front_end/core/i18n/locales/mk.json +55 -22
- package/front_end/core/i18n/locales/ml.json +33 -0
- package/front_end/core/i18n/locales/mn.json +33 -0
- package/front_end/core/i18n/locales/mr.json +54 -21
- package/front_end/core/i18n/locales/ms.json +55 -22
- package/front_end/core/i18n/locales/my.json +55 -22
- package/front_end/core/i18n/locales/ne.json +54 -21
- package/front_end/core/i18n/locales/nl.json +55 -22
- package/front_end/core/i18n/locales/no.json +55 -22
- package/front_end/core/i18n/locales/or.json +55 -22
- package/front_end/core/i18n/locales/pa.json +55 -22
- package/front_end/core/i18n/locales/pl.json +33 -0
- package/front_end/core/i18n/locales/pt-PT.json +55 -22
- package/front_end/core/i18n/locales/pt.json +55 -22
- package/front_end/core/i18n/locales/ro.json +33 -0
- package/front_end/core/i18n/locales/ru.json +55 -22
- package/front_end/core/i18n/locales/si.json +55 -22
- package/front_end/core/i18n/locales/sk.json +55 -22
- package/front_end/core/i18n/locales/sl.json +55 -22
- package/front_end/core/i18n/locales/sq.json +55 -22
- package/front_end/core/i18n/locales/sr-Latn.json +55 -22
- package/front_end/core/i18n/locales/sr.json +55 -22
- package/front_end/core/i18n/locales/sv.json +55 -22
- package/front_end/core/i18n/locales/sw.json +55 -22
- package/front_end/core/i18n/locales/ta.json +55 -22
- package/front_end/core/i18n/locales/te.json +42 -9
- package/front_end/core/i18n/locales/th.json +33 -0
- package/front_end/core/i18n/locales/tr.json +55 -22
- package/front_end/core/i18n/locales/uk.json +55 -22
- package/front_end/core/i18n/locales/ur.json +55 -22
- package/front_end/core/i18n/locales/uz.json +55 -22
- package/front_end/core/i18n/locales/vi.json +54 -21
- package/front_end/core/i18n/locales/zh-HK.json +55 -22
- package/front_end/core/i18n/locales/zh-TW.json +54 -21
- package/front_end/core/i18n/locales/zh.json +55 -22
- package/front_end/core/i18n/locales/zu.json +55 -22
- package/front_end/core/protocol_client/InspectorBackend.ts +8 -0
- package/front_end/core/sdk/CSSProperty.ts +8 -8
- package/front_end/core/sdk/NetworkManager.ts +58 -70
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/core/sdk/Resource.ts +5 -2
- package/front_end/core/sdk/RuntimeModel.ts +10 -0
- package/front_end/entrypoints/formatter_worker/formatter_worker.ts +4 -4
- package/front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js +2 -2
- package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +9 -3
- package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +1 -2
- package/front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js +5 -5
- package/front_end/models/bindings/ContentProviderBasedProject.ts +2 -3
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -4
- package/front_end/models/workspace/WorkspaceImpl.ts +62 -37
- package/front_end/panels/application/ApplicationPanelSidebar.ts +41 -1
- package/front_end/panels/application/InterestGroupStorageModel.ts +87 -0
- package/front_end/panels/application/InterestGroupStorageView.ts +112 -0
- package/front_end/panels/application/InterestGroupTreeElement.ts +61 -0
- package/front_end/panels/application/application.ts +4 -0
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +149 -0
- package/front_end/panels/application/components/components.ts +2 -0
- package/front_end/panels/application/components/interestGroupAccessGrid.css +26 -0
- package/front_end/panels/application/interestGroupStorageView.css +13 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +33 -6
- package/front_end/panels/console/ErrorStackParser.ts +34 -0
- package/front_end/panels/emulation/DeviceModeView.ts +6 -2
- package/front_end/panels/event_listeners/EventListenersUtils.ts +3 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
- package/front_end/panels/lighthouse/lighthouse.ts +1 -1
- package/front_end/panels/sources/DebuggerPausedMessage.ts +2 -2
- package/front_end/panels/sources/SourcesPanel.ts +7 -10
- package/front_end/panels/sources/UISourceCodeFrame.ts +11 -4
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +1 -2
- package/front_end/panels/sources/debuggerPausedMessage.css +5 -1
- package/front_end/third_party/codemirror/README.chromium +5 -0
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +4 -4
- package/front_end/third_party/codemirror/package/addon/runmode/{runmode-standalone.js → runmode-standalone.mjs} +0 -0
- package/front_end/third_party/codemirror/package/addon/runmode/{runmode-standalone.d.ts → runmode-standalone.mjs.d.ts} +0 -0
- package/front_end/third_party/codemirror/package/mode/css/{css.js → css.mjs} +0 -0
- package/front_end/third_party/codemirror/package/mode/css/{css.d.ts → css.mjs.d.ts} +0 -0
- package/front_end/third_party/codemirror/package/mode/javascript/{javascript.js → javascript.mjs} +0 -0
- package/front_end/third_party/codemirror/package/mode/javascript/{javascript.d.ts → javascript.mjs.d.ts} +0 -0
- package/front_end/third_party/codemirror/package/mode/xml/{xml.js → xml.mjs} +0 -0
- package/front_end/third_party/codemirror/package/mode/xml/{xml.d.ts → xml.mjs.d.ts} +0 -0
- package/front_end/third_party/lighthouse/README.chromium +2 -0
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +954 -885
- package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +1 -1
- package/front_end/third_party/lighthouse/locales/ar-XB.json +40 -4
- package/front_end/third_party/lighthouse/locales/ar.json +59 -23
- package/front_end/third_party/lighthouse/locales/bg.json +40 -4
- package/front_end/third_party/lighthouse/locales/ca.json +45 -9
- package/front_end/third_party/lighthouse/locales/cs.json +39 -3
- package/front_end/third_party/lighthouse/locales/da.json +43 -7
- package/front_end/third_party/lighthouse/locales/de.json +42 -6
- package/front_end/third_party/lighthouse/locales/el.json +59 -23
- package/front_end/third_party/lighthouse/locales/en-GB.json +43 -7
- package/front_end/third_party/lighthouse/locales/en-US.json +48 -6
- package/front_end/third_party/lighthouse/locales/en-XA.json +40 -4
- package/front_end/third_party/lighthouse/locales/en-XL.json +48 -6
- package/front_end/third_party/lighthouse/locales/es-419.json +39 -3
- package/front_end/third_party/lighthouse/locales/es.json +46 -10
- package/front_end/third_party/lighthouse/locales/fi.json +57 -21
- package/front_end/third_party/lighthouse/locales/fil.json +40 -4
- package/front_end/third_party/lighthouse/locales/fr.json +45 -9
- package/front_end/third_party/lighthouse/locales/he.json +41 -5
- package/front_end/third_party/lighthouse/locales/hi.json +59 -23
- package/front_end/third_party/lighthouse/locales/hr.json +57 -21
- package/front_end/third_party/lighthouse/locales/hu.json +39 -3
- package/front_end/third_party/lighthouse/locales/id.json +40 -4
- package/front_end/third_party/lighthouse/locales/it.json +40 -4
- package/front_end/third_party/lighthouse/locales/ja.json +39 -3
- package/front_end/third_party/lighthouse/locales/ko.json +40 -4
- package/front_end/third_party/lighthouse/locales/lt.json +40 -4
- package/front_end/third_party/lighthouse/locales/lv.json +56 -20
- package/front_end/third_party/lighthouse/locales/nl.json +40 -4
- package/front_end/third_party/lighthouse/locales/no.json +56 -20
- package/front_end/third_party/lighthouse/locales/pl.json +56 -20
- package/front_end/third_party/lighthouse/locales/pt-PT.json +57 -21
- package/front_end/third_party/lighthouse/locales/pt.json +41 -5
- package/front_end/third_party/lighthouse/locales/ro.json +39 -3
- package/front_end/third_party/lighthouse/locales/ru.json +40 -4
- package/front_end/third_party/lighthouse/locales/sk.json +39 -3
- package/front_end/third_party/lighthouse/locales/sl.json +39 -3
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +40 -4
- package/front_end/third_party/lighthouse/locales/sr.json +40 -4
- package/front_end/third_party/lighthouse/locales/sv.json +39 -3
- package/front_end/third_party/lighthouse/locales/ta.json +47 -11
- package/front_end/third_party/lighthouse/locales/te.json +61 -25
- package/front_end/third_party/lighthouse/locales/th.json +39 -3
- package/front_end/third_party/lighthouse/locales/tr.json +40 -4
- package/front_end/third_party/lighthouse/locales/uk.json +40 -4
- package/front_end/third_party/lighthouse/locales/vi.json +63 -27
- package/front_end/third_party/lighthouse/locales/zh-HK.json +40 -4
- package/front_end/third_party/lighthouse/locales/zh-TW.json +45 -9
- package/front_end/third_party/lighthouse/locales/zh.json +41 -5
- package/front_end/third_party/lighthouse/report/bundle.d.ts +1 -0
- package/front_end/third_party/lighthouse/report/bundle.js +23 -11
- package/front_end/third_party/lighthouse/report-assets/{report-generator.js → report-generator.mjs} +1 -1
- package/front_end/third_party/lighthouse/report-assets/{report-generator.d.ts → report-generator.mjs.d.ts} +0 -0
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +3 -3
- package/front_end/ui/legacy/Icon.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +4 -4
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +2 -2
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/package.json +1 -1
- package/scripts/build/devtools_plugin.js +10 -0
- package/scripts/build/esbuild.js +62 -0
- package/scripts/build/ninja/bundle.gni +77 -32
File without changes
|
@@ -38,13 +38,13 @@ const data: TreeOutline.TreeOutline.TreeOutlineData<TreeNodeData> = {
|
|
38
38
|
{
|
39
39
|
treeNodeData: {cssProperty: 'margin', cssValue: '10px 5px'},
|
40
40
|
id: '3',
|
41
|
-
async children() {
|
42
|
-
return
|
41
|
+
async children(): Promise<TreeOutline.TreeOutlineUtils.TreeNode<TreeNodeData>[]> {
|
42
|
+
return [
|
43
43
|
{treeNodeData: {cssProperty: 'margin-left', cssValue: '5px'}, id: '4'},
|
44
44
|
{treeNodeData: {cssProperty: 'margin-right', cssValue: '5px'}, id: '5'},
|
45
45
|
{treeNodeData: {cssProperty: 'margin-top', cssValue: '10px'}, id: '6'},
|
46
46
|
{treeNodeData: {cssProperty: 'margin-bottom', cssValue: '10px'}, id: '7'},
|
47
|
-
]
|
47
|
+
];
|
48
48
|
},
|
49
49
|
},
|
50
50
|
],
|
@@ -131,8 +131,8 @@ const initialDescriptors = new Map<string, Descriptor>([
|
|
131
131
|
['smallicon-warning', {position: 'd1', spritesheet: 'smallicons'}],
|
132
132
|
['smallicon-network-product', {position: 'e1', spritesheet: 'smallicons'}],
|
133
133
|
['smallicon-clear-warning', {position: 'f1', spritesheet: 'smallicons', isMask: true}],
|
134
|
-
['smallicon-clear-info', {position: 'f2', spritesheet: 'smallicons'}],
|
135
|
-
['smallicon-clear-error', {position: 'f3', spritesheet: 'smallicons'}],
|
134
|
+
['smallicon-clear-info', {position: 'f2', spritesheet: 'smallicons', isMask: true}],
|
135
|
+
['smallicon-clear-error', {position: 'f3', spritesheet: 'smallicons', isMask: true}],
|
136
136
|
['smallicon-account-circle', {position: 'f4', spritesheet: 'smallicons'}],
|
137
137
|
['smallicon-videoplayer-paused', {position: 'f6', spritesheet: 'smallicons', isMask: true}],
|
138
138
|
['smallicon-videoplayer-playing', {position: 'g6', spritesheet: 'smallicons', isMask: true}],
|
@@ -1612,12 +1612,12 @@ export class Renderer implements UI.UIUtils.Renderer {
|
|
1612
1612
|
return rendererInstance;
|
1613
1613
|
}
|
1614
1614
|
|
1615
|
-
render(object: Object, options?: UI.UIUtils.Options): Promise<{
|
1615
|
+
async render(object: Object, options?: UI.UIUtils.Options): Promise<{
|
1616
1616
|
node: Node,
|
1617
1617
|
tree: UI.TreeOutline.TreeOutline|null,
|
1618
1618
|
}|null> {
|
1619
1619
|
if (!(object instanceof SDK.RemoteObject.RemoteObject)) {
|
1620
|
-
|
1620
|
+
throw new Error('Can\'t render ' + object);
|
1621
1621
|
}
|
1622
1622
|
options = options || {title: undefined, editable: undefined};
|
1623
1623
|
const title = options.title;
|
@@ -1626,10 +1626,10 @@ export class Renderer implements UI.UIUtils.Renderer {
|
|
1626
1626
|
section.titleLessMode();
|
1627
1627
|
}
|
1628
1628
|
section.editable = Boolean(options.editable);
|
1629
|
-
return
|
1629
|
+
return {node: section.element, tree: section} as {
|
1630
1630
|
node: Node,
|
1631
1631
|
tree: UI.TreeOutline.TreeOutline | null,
|
1632
|
-
} | null
|
1632
|
+
} | null;
|
1633
1633
|
}
|
1634
1634
|
}
|
1635
1635
|
|
@@ -36,8 +36,8 @@ export class LiveHeapProfile implements Common.Runnable.Runnable,
|
|
36
36
|
return liveHeapProfileInstance;
|
37
37
|
}
|
38
38
|
|
39
|
-
run(): Promise<void> {
|
40
|
-
return
|
39
|
+
async run(): Promise<void> {
|
40
|
+
return;
|
41
41
|
}
|
42
42
|
|
43
43
|
modelAdded(model: SDK.HeapProfilerModel.HeapProfilerModel): void {
|
@@ -267,7 +267,7 @@
|
|
267
267
|
--color-input-text-disabled: rgba(128 134 139 / 70%);
|
268
268
|
/* Colors for styling buttons */
|
269
269
|
--color-button-outline-focus: rgb(138 180 248 / 75%);
|
270
|
-
--color-button-primary-background-hovering: rgb(
|
270
|
+
--color-button-primary-background-hovering: rgb(128 167 229 / 100%);
|
271
271
|
--color-button-primary-background-pressed: rgb(210 227 252 / 100%);
|
272
272
|
--color-button-primary-text: rgb(0 0 0);
|
273
273
|
--color-button-secondary-background-hovering: rgb(138 180 248 / 15%);
|
package/package.json
CHANGED
@@ -42,6 +42,16 @@ function devtoolsPlugin(source, importer) {
|
|
42
42
|
if (!importer) {
|
43
43
|
return null;
|
44
44
|
}
|
45
|
+
|
46
|
+
if (source === '../../lib/codemirror' || source === 'fs') {
|
47
|
+
// These are imported via require(...), but we don't use
|
48
|
+
// @rollup/plugin-commonjs. So this check is not necessary for rollup. But
|
49
|
+
// need to have this for esbuild as it doesn't ignore require(...).
|
50
|
+
return {
|
51
|
+
external: true,
|
52
|
+
};
|
53
|
+
}
|
54
|
+
|
45
55
|
const currentDirectory = path.normalize(dirnameWithSeparator(importer));
|
46
56
|
const importedFilelocation = path.normalize(path.join(currentDirectory, source));
|
47
57
|
const importedFileDirectory = dirnameWithSeparator(importedFilelocation);
|
@@ -0,0 +1,62 @@
|
|
1
|
+
// Copyright 2022 The Chromium Authors. All rights reserved.
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
3
|
+
// found in the LICENSE file.
|
4
|
+
|
5
|
+
// @ts-check
|
6
|
+
|
7
|
+
const path = require('path');
|
8
|
+
|
9
|
+
const devtools_paths = require('../devtools_paths.js');
|
10
|
+
const devtools_plugin = require('./devtools_plugin.js');
|
11
|
+
|
12
|
+
// esbuild module uses binary in this path.
|
13
|
+
process.env.ESBUILD_BINARY_PATH = path.join(devtools_paths.devtoolsRootPath(), 'third_party', 'esbuild', 'esbuild');
|
14
|
+
|
15
|
+
const entryPoints = [process.argv[2]];
|
16
|
+
const outfile = process.argv[3];
|
17
|
+
|
18
|
+
const outdir = path.dirname(outfile);
|
19
|
+
|
20
|
+
const plugin = {
|
21
|
+
name: 'devtools-plugin',
|
22
|
+
setup(build) {
|
23
|
+
// https://esbuild.github.io/plugins/#on-resolve
|
24
|
+
build.onResolve({filter: /.*/}, args => {
|
25
|
+
const res = devtools_plugin.devtoolsPlugin(args.path, args.importer);
|
26
|
+
if (!res) {
|
27
|
+
return null;
|
28
|
+
}
|
29
|
+
|
30
|
+
if (res.external && res.id) {
|
31
|
+
return {
|
32
|
+
external: res.external,
|
33
|
+
path: './' + path.relative(outdir, res.id),
|
34
|
+
};
|
35
|
+
}
|
36
|
+
|
37
|
+
if (res.external) {
|
38
|
+
return {
|
39
|
+
external: true,
|
40
|
+
};
|
41
|
+
}
|
42
|
+
|
43
|
+
return {
|
44
|
+
path: res.id,
|
45
|
+
};
|
46
|
+
});
|
47
|
+
},
|
48
|
+
};
|
49
|
+
|
50
|
+
require('esbuild')
|
51
|
+
.build({
|
52
|
+
entryPoints,
|
53
|
+
outfile,
|
54
|
+
bundle: true,
|
55
|
+
format: 'esm',
|
56
|
+
platform: 'browser',
|
57
|
+
plugins: [plugin],
|
58
|
+
})
|
59
|
+
.catch(err => {
|
60
|
+
console.error('failed to run esbuild:', err);
|
61
|
+
process.exit(1);
|
62
|
+
});
|
@@ -2,46 +2,91 @@
|
|
2
2
|
# Use of this source code is governed by a BSD-style license that can be
|
3
3
|
# found in the LICENSE file.
|
4
4
|
|
5
|
+
import("../../../third_party/typescript/typescript.gni")
|
5
6
|
import("./node.gni")
|
6
7
|
import("./vars.gni")
|
7
8
|
|
9
|
+
declare_args() {
|
10
|
+
# If this is enabled, devtools build uses esbuild instead of rollup.js to
|
11
|
+
# bundle JavaScript files.
|
12
|
+
devtools_fast_bundle = devtools_skip_typecheck
|
13
|
+
}
|
14
|
+
|
15
|
+
assert(!(devtools_fast_bundle && is_official_build),
|
16
|
+
"Official build should not bundle with esbuild")
|
17
|
+
|
8
18
|
template("bundle") {
|
9
19
|
assert(defined(invoker.entrypoint),
|
10
20
|
"You must define the 'entrypoint' for a bundle target")
|
11
21
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
if (!devtools_dcheck_always_on) {
|
42
|
-
args += [ "--configDCHECK" ]
|
22
|
+
if (devtools_fast_bundle) {
|
23
|
+
node_action(target_name) {
|
24
|
+
script = "scripts/build/esbuild.js"
|
25
|
+
forward_variables_from(invoker,
|
26
|
+
[
|
27
|
+
"visibility",
|
28
|
+
"deps",
|
29
|
+
"public_deps",
|
30
|
+
])
|
31
|
+
|
32
|
+
inputs = [
|
33
|
+
invoker.entrypoint,
|
34
|
+
devtools_location_prepend + "scripts/build/devtools_plugin.js",
|
35
|
+
devtools_location_prepend + "scripts/devtools_paths.js",
|
36
|
+
]
|
37
|
+
|
38
|
+
_esbuild = devtools_location_prepend + "third_party/esbuild/esbuild"
|
39
|
+
if (host_os == "win") {
|
40
|
+
inputs += [ _esbuild + ".exe" ]
|
41
|
+
} else {
|
42
|
+
inputs += [ _esbuild ]
|
43
|
+
}
|
44
|
+
|
45
|
+
args = [
|
46
|
+
rebase_path(invoker.entrypoint, root_build_dir),
|
47
|
+
rebase_path(invoker.output_file_location, root_build_dir),
|
48
|
+
]
|
49
|
+
|
50
|
+
outputs = [ invoker.output_file_location ]
|
43
51
|
}
|
52
|
+
} else {
|
53
|
+
node_action(target_name) {
|
54
|
+
script = "node_modules/rollup/dist/bin/rollup"
|
55
|
+
|
56
|
+
forward_variables_from(invoker,
|
57
|
+
[
|
58
|
+
"visibility",
|
59
|
+
"deps",
|
60
|
+
"public_deps",
|
61
|
+
])
|
62
|
+
|
63
|
+
inputs = [
|
64
|
+
invoker.entrypoint,
|
65
|
+
devtools_location_prepend + "scripts/build/rollup.config.js",
|
66
|
+
devtools_location_prepend + "scripts/build/devtools_plugin.js",
|
67
|
+
devtools_location_prepend + "scripts/devtools_paths.js",
|
68
|
+
]
|
44
69
|
|
45
|
-
|
70
|
+
args = [
|
71
|
+
# TODO(crbug.com/1098074): We need to hide warnings that are written stderr,
|
72
|
+
# as Chromium does not process the returncode of the subprocess correctly
|
73
|
+
# and instead looks if `stderr` is empty.
|
74
|
+
"--silent",
|
75
|
+
"--config",
|
76
|
+
rebase_path(
|
77
|
+
devtools_location_prepend + "scripts/build/rollup.config.js",
|
78
|
+
root_build_dir),
|
79
|
+
"--input",
|
80
|
+
rebase_path(invoker.entrypoint, root_build_dir),
|
81
|
+
"--file",
|
82
|
+
rebase_path(invoker.output_file_location, root_build_dir),
|
83
|
+
]
|
84
|
+
|
85
|
+
if (!devtools_dcheck_always_on) {
|
86
|
+
args += [ "--configDCHECK" ]
|
87
|
+
}
|
88
|
+
|
89
|
+
outputs = [ invoker.output_file_location ]
|
90
|
+
}
|
46
91
|
}
|
47
92
|
}
|