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
It exceeds the max of "100KB" #62
Comments
options: {
transform: [['babelify', { compact: false }]]
} Probably not a good idea to be passing such large files through Babel in the first place. |
@sebmck, more thanks! PS: My large file will be inlined into html |
Is there a recommended pattern for when you must import a utility library like |
@btburton42 Don't let browserify transform it since there's no reason to let it. |
Ha, yeah, I just figured that out myself. Thanks! |
How would you go about that given your Grunt example above? |
I'm getting this same error with moment in production. Is there anything I can do? |
@ppiekarczyk As previously mentioned, set |
I should say, I'm not seeing a way to blacklist those larger files. Perhaps this is outside of the scope of babelify? |
@nobleach if you're using grunt you can tell it only to pipe certain files to the babelify grunt task. i don't know if babelify itself has an ignore command though. |
Yeah, I'll have to check Browserify. I'm sure there has to be a way. |
@nobleach What is it exactly that you're trying to do? |
I am babelifying all required files with the exception of 2 vendor libs which we unwrap and include. One is our handlebars templates and the other is Marionette. I'd like to just ignore those two things. |
@nobleach By "unwrap and include" do you mean that you're not requiring them from var b = browserify({/*options*/});
b.transform(babelify.configure({
ignore: ['**/vendor/template-lib.js', '**/vendor/marionette*']
});
b.bundle(); Browserify passes the full path of a file to babelify, and babelify (via babel) can ignore files if they match a glob pattern in |
Correct, they're not in I'm using grunt-browserify, so I'll need to figure out how to get this into its config/options. I should probably be filing an issue on that project as it appears that's where my issue lies. Thanks! |
thank you @kittens |
@yuunusdurmus `'use stric'; gulp.task("browserify", function() { }); gulp.task("default", ["browserify"]); |
@buuug7 absolutely, feeling to me sometimes :) |
thanks a lot @yuunusdurmus,it was great,i have forked your setting files and will use it on my next project |
In react/redux/webpack/babel build fixed this error by removing script tag type text/babel
Into |
The
babelify
used as transformation forgrunt-browserify
How to skip this warning?
The text was updated successfully, but these errors were encountered: