Skip to content

chore(website): update build script to use esbuild instead of rollup #6716

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 12 commits into from
Mar 30, 2023

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Mar 21, 2023

PR Checklist

Overview

those changes have been extracted from #6656

  • migrate from rollup to esbuild
  • correct source map generation
  • reduce bundle size
  • simplify build

stats

  • bundling website-eslint: 220.45ms
  • netlify build time: ~ -2m (if we remove building all packages)
  • package size: ~ -250kb
source maps

this branch

image

v6

image

evanw/esbuild#819

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @armano2!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@netlify
Copy link

netlify bot commented Mar 21, 2023

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 2d992dc
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/6424f364c5947d00083985e1
😎 Deploy Preview https://deploy-preview-6716--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@bradzacher
Copy link
Member

ditto with #6656 - could we base this against the v6 branch?

@armano2 armano2 changed the base branch from main to v6 March 21, 2023 01:45
@nx-cloud
Copy link

nx-cloud bot commented Mar 21, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 2d992dc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 30 targets

Sent with 💌 from NxCloud.

@armano2 armano2 changed the base branch from v6 to main March 21, 2023 01:57
@armano2 armano2 force-pushed the chore/website-eslint-improve-build branch from 741eb84 to 01b9f00 Compare March 21, 2023 02:13
@armano2 armano2 changed the base branch from main to v6 March 21, 2023 02:13
@armano2 armano2 changed the title chore(website-eslint): update build script to use esbuild instead of rollup chore(website): update build script to use esbuild instead of rollup Mar 21, 2023
@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Merging #6716 (8c9a0cd) into v6 (6a307f0) will increase coverage by 2.21%.
The diff coverage is n/a.

❗ Current head 8c9a0cd differs from pull request most recent head 2d992dc. Consider uploading reports for the commit 2d992dc to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##               v6    #6716      +/-   ##
==========================================
+ Coverage   85.15%   87.36%   +2.21%     
==========================================
  Files         383      373      -10     
  Lines       13026    12800     -226     
  Branches     3839     3793      -46     
==========================================
+ Hits        11092    11183      +91     
+ Misses       1572     1232     -340     
- Partials      362      385      +23     
Flag Coverage Δ
unittest 87.36% <ø> (+2.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 163 files with indirect coverage changes

@armano2 armano2 requested a review from bradzacher March 24, 2023 09:59
@armano2 armano2 requested a review from JoshuaKGoldberg March 24, 2023 10:58
@armano2
Copy link
Collaborator Author

armano2 commented Mar 25, 2023

@bradzacher i enabled type-checking for website-eslint and updated build to use source code instead of dist, I also removed most of no longer necessary use-at-your-own-risk as some of them where redundant and not really necessary

if you think that we should restore some of them let me know

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

remove the rollup config from renovate and we can land this

// TODO - once we bump pass the major, we can remove these. Currently renovate is creating broken, immortal PRs
'@rollup/plugin-babel',
'@rollup/plugin-commonjs',
'@rollup/plugin-json',
'@rollup/plugin-node-resolve',
'@rollup/plugin-replace',
'@rollup/plugin-terser',
'@rollup/pluginutils',
'rollup-plugin-terser',
'rollup',

{
matchPackagePrefixes: ['@rollup', 'rollup-'],
matchPackageNames: ['rollup'],
groupName: 'rollup',
},

@armano2 armano2 merged commit 4eb0e3a into v6 Mar 30, 2023
@armano2 armano2 deleted the chore/website-eslint-improve-build branch March 30, 2023 02:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants