rtfeldman/seamless-immutable

Please clarify the docs regarding when dev/prod modes are on (Node)

開放

#50 建立於 2015年7月14日

 (10 則留言) (0 個反應) (0 位負責人)JavaScript (221 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (5,367 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Hello,

perhaps it wasn't my brightest day :-) but I found it difficult to find out when the dev or prod modes are active under Node.js. It would be great clarify that in the docs.

I believe this is true (and exhaustive) but am not sure:

/*1.*/ var Immutable = require('seamless-immutable'); // => dev mode
/*2.*/ var Immutable = require('seamless-immutable/seamless-immutable.production.min'); // => prod mode
/*3.*/ var Immutable = require('seamless-immutable/seamless-immutable.production.min'); process.env.NODE_ENV = "development"; // => dev mode

Thank you!

貢獻者指南