Skip to content
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

chore: Bump (most) deps #1081

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

chore: Bump (most) deps #1081

wants to merge 6 commits into from

Conversation

rschristian
Copy link
Collaborator

Supersedes #969

Copy link

changeset-bot bot commented Jun 4, 2024

🦋 Changeset detected

Latest commit: 9d764e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
microbundle Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jun 4, 2024

Size Change: +1.2 kB (+4.69%) 🔍

Total Size: 26.9 kB

Filename Size Change
dist/cli.js 14.1 kB +599 B (+4.43%)
dist/microbundle.js 12.7 kB +605 B (+4.99%) 🔍

compressed-size-action

@@ -1,5 +1,6 @@
{
"compilerOptions": {
"moduleResolution": "node",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tslib otherwise can't be found, oddly. This should be the default but maybe rtp2 is doing something odd.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
test/__snapshots__/index.test.js.snap Show resolved Hide resolved
@rschristian rschristian changed the title chore: Bump deps, mostly working chore: Bump (most) deps Jun 4, 2024
@rschristian rschristian marked this pull request as ready for review June 4, 2024 07:31
Comment on lines -20 to -25
- name: compressed-size-action
uses: preactjs/compressed-size-action@v2
with:
pattern: 'test/fixtures/**/dist/!(*.map)'
build-script: 'test'
repo-token: '${{ secrets.GITHUB_TOKEN }}'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Test suite already covers this really, we don't need a separate readout for file size bumps in a PR comment.

Also this is not aligning w/ the 'Test' CI action, probably Node version differences that isn't worth trying to hack around

@rschristian rschristian mentioned this pull request Jun 4, 2024
@rschristian rschristian linked an issue Jul 3, 2024 that may be closed by this pull request
@hbroer
Copy link

hbroer commented Dec 20, 2024

This is IMO very important to merge. I need to manualy override "rollup-plugin-typescript2" to latest (0.36.0) everywhere I use microbundle, else it can't compile typescript because it can't find the types:

(rpt2 plugin) Error: ...ts(x,x): semantic error TS2307: Cannot find module '...' or its corresponding type declarations.
  There are types at '....d.ts',  but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.

I had the solution found a year or so ago, but forgot about it and did get cought by it again and wasted a few hours to find out how to solve it. Workaround:

Add this to your package.json

  "overrides": {
    "rollup-plugin-typescript2": "^0.36.0"
  }

If you use npm workspaces make sure it is overwritten and not existing anymore in node_modules/microbundle/node_modules.

@rschristian
Copy link
Collaborator Author

@developit If you have a few minutes, would appreciate a peek at this and potentially #1082 & #1083 -- we're starting to hit dep rot

@@ -2320,26 +2319,26 @@ modern-generators


Build \\"modern-generators\\" to dist:
248 B: modern-generators.js.gz
201 B: modern-generators.js.br
2.57 kB: modern-generators.js.gz
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we ok with this massive increase?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey, long time no see! Hope all is well & good w/ you.

Mentioned this above in a resolved comment:

Oh nice, 7.18.0 ended up inlining regenerator as a normal helper, dropping the global: babel/babel#14538

This is a sizable increase but IMO it's completely reasonable.

I still think this is reasonable, but admittedly, I was very much not a fan of Babel's previous behavior.

Do you disagree with this? I suppose we could work around it and revert to previous behavior if we really needed to.

@@ -7,6 +7,16 @@ const ESMODULES_TARGET = {
esmodules: true,
};

// silence Babel 7.13+ loose-with-assumptions warnings
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we want to silence this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great question, will look into it & improve the comment (or remove this entirely) as I don't quite remember myself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the mention! Indeed, seems like a silly hack I inserted when testing and forgot to clean up/fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Types haven't been bundled by microbundle
3 participants