मैं .babelrc
के लिए मूल निर्देशिका को देखने के लिए बाबल को कैसे बल दूं? ./a/.babelrc
और ./a/example/.babelrc
:अक्षम करें .babelrc विरासत
- मैं दो
.babelrc
फ़ाइलों की है। - मैं
babel
./a/example
पथ में चल रहा हूं। ।{ "stage": 0, "plugins": [] }
हालांकि, चल:
./a/.babelrc
एक प्लगइन "lodash"- मैं जब
./a/example
में कोलाहल को क्रियान्वित मैं करने के लिए ./a/example/.babelrc
स्थापित करने की कोशिश की है इस प्लगइन का उपयोग नहीं करना चाहते हैं परिभाषित करता है babel
./a/example
पथ में अभी भी "lodash" प्लगइन का उपयोग किया जाता है।
$ pwd
/a/example
$ cat ./.babelrc
{
"stage": 0,
"plugins": []
}
$ cat ./../.babelrc
{
"stage": 0,
"plugins": [
"lodash"
]
}
$ babel ./src/
Error: ENOENT: no such file or directory, scandir '/a/node_modules/babel-plugin-lodash/node_modules/lodash'
[..]
$ babel --babelrc ./.babelrc ./src/
Error: ENOENT: no such file or directory, scandir '/a/node_modules/babel-plugin-lodash/node_modules/lodash'
[..]
क्या v6 @Gajus के लिए उन परिवर्तनों का संदर्भ देने में कोई समस्या है? – JMM
@ जेएमएम, नहीं। मैंने लेखक के साथ चैट करने से इसके बारे में सीखा है। – Gajus
। @ गजस ओके धन्यवाद, यही मैंने पाया है :) वास्तव में यह 6.0 अंक में होना चाहिए। – JMM