steal: Development Bundles doesn't work

How often can you reproduce it?

  • Always

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:

  1. clone repo https://github.com/pYr0x/jss-steal-app
  2. npm install
  3. npm run deps-bundle

Expected results: the dev.html is working.

Actual results: i get an error:

TypeError: define is not a function
	    at Object.eval (http://localhost:63342/jss-steal-app/dev-bundle.js:4:110682)
	    at eval (http://localhost:63342/jss-steal-app/dev-bundle.js:5:4)
	    at eval (http://localhost:63342/jss-steal-app/dev-bundle.js:5:98)
	Evaluating http://localhost:63342/jss-steal-app/dev-bundle.js null

Environment:

Software Version
Steal version 1.5.5
Steal-tools version 1.7.0
node -v 6
npm -v 3.10
Browser chrome
Operating system mac

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (11 by maintainers)

Most upvoted comments

@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 --no-minify to the bundle command and it should load fine (and it should still be faster that loading each dep individually)

"deps-bundle": "steal-tools bundle --deps --no-minify"

Thanks for the example app, I’ll update this issue once I find/fix the problem.