Skip to content

Commit d0ff2ee

Browse files
committed
fix(cli): default bundler is webpack, so move to position 1
Because index 0 is used as a means of classifying an option as being (Default) when you choose custom in the CLI at present, RequireJS is presented in the UI as the default. However, Webpack is now the default. The fix for this is to move Webpack to the top of the list so the code on line 155 `text += ' (Default)';` applies to Webpack.
1 parent 145895a commit d0ff2ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/commands/new/new-application.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
"question": "Which module loader / bundler would you like to use?",
133133
"stateProperty": "loaderBundler",
134134
"options": [
135+
{
136+
"displayName": "Webpack",
137+
"description": "A powerful bundler",
138+
"value": "webpack"
139+
},
135140
{
136141
"displayName": "RequireJS",
137142
"description": "A file and module loader for JavaScript.",
@@ -141,11 +146,6 @@
141146
"displayName": "SystemJS",
142147
"description": "Dynamic ES module loader",
143148
"value": "systemjs"
144-
},
145-
{
146-
"displayName": "Webpack",
147-
"description": "A powerful bundler",
148-
"value": "webpack"
149149
}
150150
]
151151
},

0 commit comments

Comments
 (0)