-
Notifications
You must be signed in to change notification settings - Fork 9.5k
report: convert to ES modules #12702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 43 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
2b9cec9
first pass
connorjclark e89d095
rollup yum
connorjclark 4e3800b
Merge remote-tracking branch 'origin/master' into esmodules
connorjclark 9b5e303
copy and transform util.js to commonjs
connorjclark f32562d
tweak
connorjclark e6bb972
update for cdt
connorjclark 937c710
import
connorjclark c745cbd
remove some changes
connorjclark aeea6a8
use render.js for standalone
connorjclark f34a012
tweak
connorjclark d24381f
fix tests. defer common entry point.
connorjclark 5c66cfe
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark 0107c03
report/clients
connorjclark cc3b98c
terser
connorjclark 18eb5a4
tsignore
connorjclark 0ac3a82
comments
connorjclark ad0974c
fix viewer
connorjclark 593906b
fix devtools action
connorjclark 3a38115
build: add build step for report
connorjclark 53033c8
mkdir
connorjclark 9b425a0
build that shiz
connorjclark 19e11bb
rm
connorjclark 844d5bf
ohhhh windows
connorjclark cafef7c
ugh
connorjclark 9073d97
fix viewer
connorjclark f574fe2
fix collect strings
connorjclark a66a626
update psi.js
connorjclark f36cbab
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark 008c3b0
rm autobuild
connorjclark aee255b
convert tests
connorjclark 489e1a8
convert report tests
connorjclark cf5480a
remove global declaring stuff
connorjclark 0ea11ab
fix treemap
connorjclark 6579cce
--experimental-vm-modules
connorjclark 214eb77
yarn jest
connorjclark 91b6926
build report
connorjclark 353c772
dist
connorjclark fd5128b
Merge remote-tracking branch 'origin/master' into build-report
connorjclark 060eced
fix yarn jest
connorjclark e1627a8
Merge branch 'build-report' into report-esmodules
connorjclark bef23c1
yarn build-report
connorjclark bafdc7e
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark 5805f34
lol
connorjclark 1340b49
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark f1b4351
tweak
connorjclark 7c9d522
only
connorjclark be94766
tweak roll script
connorjclark c419c30
tweak
connorjclark 9ec4934
fix dt build
connorjclark 329f09b
fix test
connorjclark a3bb85a
psi
connorjclark a8bb6f0
fix yarn test-clients
connorjclark d78111a
scripts(i18n): support es modules in collect-strings
connorjclark cd3e92a
more root
connorjclark 258dcaf
fix script tests
connorjclark 7329b3c
Merge branch 'esmodules-collect' into report-esmodules
connorjclark 2e01344
ci
connorjclark 8307eaf
just import
connorjclark 1f386b7
rm
connorjclark 9f50d9d
update
connorjclark 642289b
revertests
connorjclark 3e9f32e
more revert
connorjclark 2a43904
Merge commit '2e013444f7eaf7d3b1249f5166a607274aa7c2c9' into report-e…
connorjclark a570796
update
connorjclark 6a2bda5
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark a4488b4
fix async test
connorjclark fa1c6dd
yarn jest
connorjclark f9c508e
copy util again
connorjclark ebee371
fix for windows
connorjclark c6a6ef8
tmp no fail fast
connorjclark 0f0fcee
tmp: debuging with runInBand
connorjclark a983e75
lets get that stacktrace
connorjclark 7f5839e
node crash workaround
connorjclark 3b8f9bb
comment
connorjclark b73d2c6
update
connorjclark 292d3a8
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark 46ca260
comment
connorjclark baf5e55
build: run build-report for vercel deployment
connorjclark d6d93b9
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark b406a6c
Merge branch 'fixnowbuildreport' into report-esmodules
connorjclark 3679313
fix
connorjclark f9ff110
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark c7dfe92
fix standalone bundle
connorjclark 860cb29
Merge remote-tracking branch 'origin/master' into report-esmodules
connorjclark 547afdf
add comment for cdt
connorjclark 88a86fe
fix un upstreamed psi fix
connorjclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
## | ||
# @license Copyright 2021 The Lighthouse Authors. All Rights Reserved. | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | ||
## | ||
|
||
# TODO(esmodules): delete when consumers of util.js are all esm. | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
LH_ROOT_DIR="$SCRIPT_DIR/../.." | ||
|
||
OUT_FILE="$LH_ROOT_DIR"/lighthouse-core/util-commonjs.js | ||
|
||
echo '// @ts-nocheck' > "$OUT_FILE" | ||
echo '// Auto-generated by lighthouse-core/scripts/copy-util-commonjs.sh' >> "$OUT_FILE" | ||
echo '// Temporary solution until all our code uses esmodules' >> "$OUT_FILE" | ||
sed 's/export class Util/class Util/g' "$LH_ROOT_DIR"/report/renderer/util.js >> "$OUT_FILE" | ||
echo 'module.exports = Util;' >> "$OUT_FILE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.