最新バージョンの MVC4 を使用すると、予約語がキー名として含まれていると JavaScript を縮小できません。
縮小されているはずの有効な JavaScript を含む以下のエラーを参照してください。
[""] 表記を使用するように JavaScript を書き換える方法を知っている人はいますか?
PS問題のコードは数千行の長さなので、オプションではありません!
/* Minification failed. Returning unminified contents.
(3,9-15): run-time warning JS1010: Expected identifier: delete
(4,9-13): run-time warning JS1010: Expected identifier: case
(5,9-11): run-time warning JS1010: Expected identifier: if
(3,9-15): run-time error JS1137: 'delete' is a new reserved word and should not be used as an identifier: delete
(4,9-13): run-time error JS1137: 'case' is a new reserved word and should not be used as an identifier: case
(5,9-11): run-time error JS1137: 'if' is a new reserved word and should not be used as an identifier: if
*/
var context = {};
context.delete = {};
context.case = {};
context.if = {};
問題は、ノード、カセット、コムレス、サービススタックなどの別のオプションを使用しないことです
MVC4 に予約語を使用してボールをプレーさせるにはどうすればよいですか。
6 か月が経過した後、これに対するサポートがないとは信じがたいです。