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
Esbuild plugin #270
Esbuild plugin #270
Conversation
Looks excellent. We just need also Search for |
Co-authored-by: Andrey Sitnik <andrey@sitnik.ru>
packages/esbuild/index.js
Outdated
let runEsbuild = require('./run-esbuild') | ||
let getConfig = require('./get-config') | ||
|
||
const ESBUILD_EMPTY_PROJECT = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need tests with empty project to validate these constants.
The project with empty file should have 0
bytes.
The project with one digit export (and import
config) should have 1
byte size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm struggling with this a bit. Could you help me with that? Maybe we have an example of how to validate such kinds of constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a test example for *_EMPTY_PROJECT_IMPORT
and *_EMPTY_PROJECT_IMPORT_GZIP
https://github.com/ai/size-limit/blob/main/packages/webpack/test/index.test.js#L241-L268
Here is a test example for *_EMPTY_PROJECT
and *_EMPTY_PROJECT_GZIP
(yeap, it is in size-limit
and not in webpack
plugin for historical reason, feel free to move).
https://github.com/ai/size-limit/blob/main/packages/size-limit/test/run.test.js#L322-L328
We still need to fix coverage and fix some strange Node.js 12 issue |
Test coverage shows that we need to calibrate (test) Also, we still have Node.js 12 problem:
|
Can't reproduce errors from actions on my local machine, will investigate it on another os. As I see, this problem appears on every node version |
It could be related to CI environment also |
I pushed merge commit to run CI |
Greta work. Thanks. |
Hello there! I've worked on a plugin for esbuild( according to #267 ).
Not sure about the needed requirements and the final point for this
Take a look, please