-
Notifications
You must be signed in to change notification settings - Fork 522
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
Development Bundles doesn't work #1227
Comments
Any suggestions @m-mujica ? |
@pYr0x I haven't looked into this yet.... Once I'm done with my current issue I'll see what I can do, I'll let you know. |
Ok thanks |
@pYr0x I can see the error, seems to be caused by the minifier. I'm looking deep into it but while I get a fix you could just pass "deps-bundle": "steal-tools bundle --deps --no-minify" Thanks for the example app, I'll update this issue once I find/fix the problem. |
Am I wrong in thinking that dev bundles are unminified by default? |
@matthewp I can't remember, looking at the code now. 😬 |
@matthewp the piece of code the bundle command adds to preload the bundled packages breaks the comments regex applied to the source code in the amd extension (the package json files sometime include glob patters like "/*.js" and that breaks the regex) steal/src/base/lib/extension-amd.js Line 292 in 65c62a5
So the bundle's format is set to cjs instead of amd. |
I wonder if there is no test for the deps bundle? |
sure, there are tests https://github.com/stealjs/steal-tools/blob/master/test/dev_bundle_build_test.js, the bug will show up only if a dependency package.json has a `"/*" in one of its properties.
maybe, not sure how though. |
You are talking about that piece of code ? |
Should dev bundles be unminified? I can't think of when/why you'd want them to be minified. Just takes longer to build that way. |
I think we should have made that the default, I can't remember why we did not do it. I'm in to change it though. |
So if we just make that the default that takes away this bug, right? |
@matthewp yup, there you go stealjs/steal-tools#905 |
How often can you reproduce it?
Description:
i installed steal and steal-tools on a fresh project.
i want to create a deps bundle. i followed the guides https://stealjs.com/docs/StealJS.guides.development_bundles.html#add-npm-script-to-generate-the-bundle and added the new script tag
<script src="node_modules/steal/steal.js" deps-bundle></script>
Steps to reproduce:
Expected results:
the dev.html is working.
Actual results:
i get an error:
Environment:
The text was updated successfully, but these errors were encountered: