-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Custom builder and --why #22
Comments
Hm. We use UglifyES specially too parse ES6. Maybe you have ES2017 here? Do you call Size Limit to uncomplicated sources or on |
Right now we have |
Understand. I will think about the solution. Right now I have 2 questions:
|
|
UMD bundle is something like AMD? To take your library in single file and load it into non-webpack project? |
Yes. It allows non-webpack users to use it. |
Other questions (sorry that I use you to understand non-relevant topic :D)
|
If we want to talk about this issue. I see two possible ways:
If we will just add |
I will think about solution on this weekend. |
I will think about it on next week. Sorry, I need more time to release Logux 0.2. |
Don’t be sorry! It’s open source and I don’t expect you to jump on this :) |
I have same issue, my project's javascripts are using
|
@asotog @okonet temporary solution:
Right now I have the idea to add source map support Webpack Bundle Analyzer. It will solve all these problems perfectly (you can still use everything-in-one-file bundle and |
@ai the sizing validation works fine, but the |
@asotog yeap. This happens because of you server one big file to your users There are 3 options:
|
As a quick solution, you can use custom webpack config #29 But it is not the best solution since we must emulate real user experience when somebody will add your library to project. So I will keep this issue open until I will find time to add source map support to Webpack Bundle Analyzer. |
👋 Not sure if it's common use case but it's a valid one so I guess it's worth-mentioning. I have a lib which is es6+ (a private repo). I don't compile it down to es5 as it's being used in a controlled environment, in my other project, which is webpack-based app. So all compilation goes there (only once). The only way to use size-limit in my lib now is to add babel step there, right? |
@mikesub nope, Size Limit should work with any syntax supported by Node.js (we use |
Found it. Besides common es6+ stuff I use object rest/spread and it's in Stage 3 currently. Removed that and it worked. Thanks! |
I have the same problem with the spread operator. Ended up using the solution suggested by @ai
|
Size Limit 2.0 was released with modular architecture. Now we have a better UI to explain that |
Running
size-limit
on react-dropzone throws an error:Looking at code I could not find
babel-loader
. Is this project suppose to only be used with ES5 code?The text was updated successfully, but these errors were encountered: