-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
P2X-1023 exclude inline assests from PRL (#9194)
* Remove inline assets from PRL count * Add test case for inline assets not counting toward PRL * Remove graph logging statements * Clean up changes * Refactor and simplify test case * Add invariant statement to prevent flow from complaining
- Loading branch information
Showing
7 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/inlined-assests/buzz.js
This file contains 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 @@ | ||
export default 7; |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/inlined-assests/inline-module.js
This file contains 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,3 @@ | ||
import('./buzz'); | ||
|
||
export default 10; |
8 changes: 8 additions & 0 deletions
8
packages/core/integration-tests/test/integration/inlined-assests/local.html
This file contains 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,8 @@ | ||
<!doctype html> | ||
<html> | ||
<body> | ||
<script type="module"> | ||
import './inline-module'; | ||
</script> | ||
</body> | ||
</html> |
7 changes: 7 additions & 0 deletions
7
packages/core/integration-tests/test/integration/inlined-assests/package.json
This file contains 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,7 @@ | ||
{ | ||
"@parcel/bundler-default": { | ||
"minBundles": 1, | ||
"minBundleSize": 200, | ||
"maxParallelRequests": 2 | ||
} | ||
} |
Empty file.