Skip to content

build: remove brfs from build processes#24000

Merged
davidmurdoch merged 1 commit intodevelopfrom
remove-brfs
Apr 15, 2024
Merged

build: remove brfs from build processes#24000
davidmurdoch merged 1 commit intodevelopfrom
remove-brfs

Conversation

@davidmurdoch
Copy link
Copy Markdown
Contributor

@davidmurdoch davidmurdoch commented Apr 12, 2024

The brfs package was used to transform calls to fs.readFile* into inlined files as strings during build/compilation. We no longer make use of fs.readFile* in our code, so the dependency is no longer required. While it doesn't cause issues to leave it, the package is slow as it must parse the contents into an AST and then statically analyze the tree looking for relevant calls to fs.readFile*. This overhead is unwanted, so I've removed it from our build process.

@davidmurdoch davidmurdoch added the team-extension-platform Extension Platform team label Apr 12, 2024
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 12, 2024

@davidmurdoch davidmurdoch marked this pull request as ready for review April 12, 2024 14:54
@davidmurdoch davidmurdoch requested review from a team and kumavis as code owners April 12, 2024 14:54
@davidmurdoch davidmurdoch force-pushed the remove-brfs branch 3 times, most recently from e7a251d to b597020 Compare April 12, 2024 16:42
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [e0fb026]
Page Load Metrics (1244 ± 571 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint683821387435
domContentLoaded11126333014
load55296212441190571
domInteractive11126333014
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 19 Bytes (0.00%)

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.54%. Comparing base (1098a10) to head (e0fb026).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24000   +/-   ##
========================================
  Coverage    67.54%   67.54%           
========================================
  Files         1245     1245           
  Lines        48866    48866           
  Branches     12744    12744           
========================================
  Hits         33005    33005           
  Misses       15861    15861           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidmurdoch davidmurdoch merged commit be3c4f2 into develop Apr 15, 2024
@davidmurdoch davidmurdoch deleted the remove-brfs branch April 15, 2024 20:10
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2024
@metamaskbot metamaskbot added the release-11.16.0 Issue or pull request that will be included in release 11.16.0 label Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.16.0 Issue or pull request that will be included in release 11.16.0 team-extension-platform Extension Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants