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 42a447a commit a85c950Copy full SHA for a85c950
index.js
@@ -10,9 +10,11 @@ module.exports = function (b, opts) {
10
throw new Error('tinyify: must be used as a plugin, not a transform')
11
}
12
13
+ opts = opts || {}
14
+
15
var env = Object.assign({
16
NODE_ENV: 'production'
- }, process.env)
17
+ }, process.env, opts.env)
18
19
// Remove `assert()` calls.
20
b.transform(unassertify, { global: true })
0 commit comments