We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404d2aa commit 2138f15Copy full SHA for 2138f15
build/tasks/build.js
@@ -20,6 +20,8 @@ module.exports = function( grunt ) {
20
optimize: "none",
21
// Include dependencies loaded with require
22
findNestedDependencies: true,
23
+ // Avoid inserting define() placeholder
24
+ skipModuleInsertion: true,
25
// Avoid breaking semicolons inserted by r.js
26
skipSemiColonInsertion: true,
27
wrap: {
@@ -81,7 +83,7 @@ module.exports = function( grunt ) {
81
83
82
84
// Remove empty definitions
85
contents = contents
- .replace( /define\(\[[^\]]+\]\)[\W\n]+$/, "" );
86
+ .replace( /define\(\[[^\]]*\]\)[\W\n]+$/, "" );
87
}
88
// AMD Name
89
if ( (amdName = grunt.option( "amd" )) != null && /^exports\/amd$/.test( name ) ) {
0 commit comments