File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ define([
47
47
var excludedOptions = [ 'extraPlugins' , 'resolveModuleSource' ] ;
48
48
var pluginOptions = _module . config ( ) ;
49
49
var fileExtension = pluginOptions . fileExtension || '.js' ;
50
- var options = {
50
+ var defaultOptions = {
51
51
plugins : ( pluginOptions . extraPlugins || [ ] ) . concat ( [
52
52
'transform-modules-amd' ,
53
53
[
@@ -60,7 +60,7 @@ define([
60
60
} ;
61
61
for ( var key in pluginOptions ) {
62
62
if ( pluginOptions . hasOwnProperty ( key ) && excludedOptions . indexOf ( key ) < 0 ) {
63
- options [ key ] = pluginOptions [ key ] ;
63
+ defaultOptions [ key ] = pluginOptions [ key ] ;
64
64
}
65
65
}
66
66
@@ -71,6 +71,10 @@ return {
71
71
var sourceFileName = name + fileExtension ;
72
72
var url = req . toUrl ( sourceFileName ) ;
73
73
74
+ var options = { } ;
75
+ for ( var key in defaultOptions ) {
76
+ options [ key ] = defaultOptions [ key ] ;
77
+ }
74
78
options . sourceFileName = sourceFileName ;
75
79
options . sourceMap = config . isBuild ? false : 'inline' ;
76
80
You can’t perform that action at this time.
0 commit comments