feat: next
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
function * disableNodeCli (compiler, next) {
|
||||
if (compiler.options.enableNodeCli) {
|
||||
return next()
|
||||
}
|
||||
|
||||
const nodecc = yield compiler.readFileAsync('src/node.cc'),
|
||||
nodeccMarker = "argv[index][0] == '-'"
|
||||
|
||||
nodecc.contents = nodecc.contents.replace(
|
||||
nodeccMarker,
|
||||
nodeccMarker.replace('-', ']')
|
||||
)
|
||||
|
||||
return next()
|
||||
}
|
||||
|
||||
module.exports.disableNodeCli = disableNodeCli
|
||||
Reference in New Issue
Block a user