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.