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

Meta: Update devDependencies #3451

Merged
merged 5 commits into from
Aug 10, 2020
Merged

Meta: Update devDependencies #3451

merged 5 commits into from
Aug 10, 2020

Conversation

fregante
Copy link
Member

Comments below

@fregante fregante added the meta Related to Refined GitHub itself label Aug 10, 2020
package.json Outdated
"mini-css-extract-plugin": "^0.9.0",
"npm-run-all": "^4.1.5",
"rollup": "^2.19.0",
"rollup": "^2.23.1",
"size-plugin": "^2.0.1",
"string-replace-loader": "^2.3.0",
"stylelint": "^13.6.1",
"stylelint-config-xo": "^0.19.0",
"terser-webpack-plugin": "^3.0.6",
Copy link
Member Author

@fregante fregante Aug 10, 2020

Choose a reason for hiding this comment

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

I'm not updating this one yet because in the next version (webpack-contrib/terser-webpack-plugin@100e38e) they start affecting copy-webpack-plugin files too, which means that our neat webextensions.min.js is stripped of license information and unnecessarily "beautified"

I initially used copy-webpack-plugin to copy this file because:

  • I want browser to be a global
  • I thought AMO preferred unmodified libraries
  • It's minified by default!
  • It can be used by all entry points without being bundled in each one of them

There are 2 possible solutions to this:

  • find/add a way for terser-webpack-plugin to exclude this file
  • have webpack create a vendor file

I tried the second one in #3157 already but that failed

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

package.json Show resolved Hide resolved
fregante added a commit that referenced this pull request Aug 10, 2020
Let #3451 update it, to avoid conflicts
fregante referenced this pull request in webpack-contrib/terser-webpack-plugin Aug 10, 2020
"ts-node": "^8.10.2",
"type-fest": "^0.16.0",
"typescript": "^3.9.6",
Copy link
Member Author

Choose a reason for hiding this comment

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

TypeScript 4 enables labeled Tuple Types, we can apply these to existing RG code
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#labeled-tuple-elements

cc @yakov116

Copy link
Member

Choose a reason for hiding this comment

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

Remind me next week 👍

Copy link
Member

Choose a reason for hiding this comment

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

@fregante can you give me an example? I don't know typescript that well and i am having a hard time understanding how this works.

Copy link
Member

Choose a reason for hiding this comment

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

microsoft/TypeScript#28259 (comment) Great explanation. 🚀

@fregante fregante merged commit 7462d64 into master Aug 10, 2020
@fregante fregante deleted the updates-august branch August 10, 2020 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to Refined GitHub itself
Development

Successfully merging this pull request may close these issues.

None yet

2 participants