// stealconfig.js- steal.config({
- shim: {
- "one.js": {
- "packaged": false
- }
- }
- });
- // one.js
- var person = {
- "name": "Arjun"
- };
- // depsonone.js
- person.name;
- // init.js
- steal("one.js").then("depsonone.js");
- Steal build is working fine and also steal is not packaging one.js but dependencies are not added correctly
- // production.js
- steal.packages({});
- steal.has("stealconfig.js", "init.js", "depsonone.js");
- steal("stealconfig.js", "init.js", "depsonone.js");
- steal.pushPending();
- steal.config({
- // steal config
- });
- steal.executed("stealconfig.js");
- steal("one.js").then("depsonone.js");
- steal.executed("init.js");
- // with packaged = true contents of one.js are added here and everything works fine
- // with packaged = false contents of one.js are not added and person is undefined
- person.name; // person is undefined error as there is no guarantee that one.js would be loaded.
- steal.executed("depsonone.js");
- steal.popPending();
↧
Steal build with steal.config.shim.package=false is not building the dependencies correctly
↧