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 03eaadb commit 0c34e68Copy full SHA for 0c34e68
build/tasks/build.js
@@ -53,7 +53,7 @@ module.exports = function( grunt ) {
53
var amdName;
54
55
// Convert var modules
56
- if ( /.\/var\//.test( path ) ) {
+ if ( /.\/var\//.test( path.replace( process.cwd(), "" ) ) ) {
57
contents = contents
58
.replace( /define\([\w\W]*?return/, "var " + ( /var\/([\w-]+)/.exec( name )[ 1 ] ) + " =" )
59
.replace( rdefineEnd, "" );
0 commit comments