-
Notifications
You must be signed in to change notification settings - Fork 23
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
Minified Dep Bundles are Broken #947
Comments
Can you recreate with an example app? |
This is a known issue, and it's the reason why we made minify false the default #905 To fix it, this regex needs to ignore any glob patterns introduced by this node https://github.com/stealjs/steal-tools/blob/master/lib/bundle/add_npm_packages_node.js |
@m-mujica It looks like the minify false by default is not working in v1.11.3 unless I specifically add the |
@m-mujica is there another existing issue for this? |
@matthewp nope, I didn't check if there is indeed a bug with the default minify setting, there is a test here steal-tools/test/dev_bundle_build_test.js Lines 15 to 45 in dd10ef3
|
@kylegifford is it gzipped? gzipping often improves payload size even more than minification. Also, it looks like load is only effected about 60ms. While that's something, from the slack convo, it looks like you are looking for more substantive improvements? |
instead of using a regexp ... I wonder if can-parse could perform well enough here, and be accurate enough. We don't need to support JS's full syntax, only it seems strings and comments? |
Just added a branch with a breaking test, might try to fix it this weekend... anyway, if anyone else picks it there you have the test. |
When building the CanJS site if I use
"deps-bundle": "steal-tools bundle --deps"
in my scripts and try to load a demo with that deps-bundle like:It will break on load with the error:
If I add the
--no-minify
option"deps-bundle": "steal-tools bundle --deps --no-minify"
it works fine but the deps-bundle is not minified.The text was updated successfully, but these errors were encountered: