cram js special define pattern, deletes content while building single file

17 views
Skip to first unread message

Daniel Haag

unread,
Feb 25, 2013, 1:56:08 AM2/25/13
to cuj...@googlegroups.com
A define function that has another parameter behind the required modules results in a loss of javascript in the target file.
The data until the next { will be deleted
 
                define(["knockout", "exports"], factory);
        } else {
                // <script> tag: use the global `ko` object, attaching a `mapping` property
 
 
Results in:
                define('knockout-mapping/knockout.mapping', ['knockout/knockout-2.2.1', 'exports'], {
 
                // <script> tag: use the global `ko` object, attaching a `mapping` property
 
 
If you would like to have a demo based on your cram-dev/test build, that is showing this issue just drop me a note. since I can not attach files here.


Tested with cram-dev version.
 

unscriptable

unread,
Feb 25, 2013, 10:22:07 AM2/25/13
to cuj...@googlegroups.com
I'll set up a test for this.  Thanks!  you can track the progress of this bug here, if you like.

-- John
Reply all
Reply to author
Forward
0 new messages