Uncomment code for Babel 7.10.0
This commit is contained in:
parent
429840dc2b
commit
a06e8e5dd0
8
Makefile
8
Makefile
@ -219,14 +219,6 @@ prepublish:
|
|||||||
IS_PUBLISH=true $(MAKE) test
|
IS_PUBLISH=true $(MAKE) test
|
||||||
|
|
||||||
new-version:
|
new-version:
|
||||||
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
@echo "!!!!!! !!!!!!"
|
|
||||||
@echo "!!!!!! Enable the check in transform-for-of !!!!!!"
|
|
||||||
@echo "!!!!!! !!!!!!"
|
|
||||||
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
@exit 1
|
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
$(YARN) lerna version --force-publish=$(FORCE_PUBLISH)
|
$(YARN) lerna version --force-publish=$(FORCE_PUBLISH)
|
||||||
|
|
||||||
|
|||||||
@ -21,22 +21,11 @@ export default declare((api, options) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove in Babel 8
|
// TODO: Remove in Babel 8
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
if (allowArrayLike && /^7\.\d\./.test(api.version)) {
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// TODO: Enable before releasing 7.10.0
|
|
||||||
/*if (allowArrayLike && /^7\.\d\./.test(api.version)) {
|
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`The allowArrayLike is only supported when using @babel/core@^7.10.0`,
|
`The allowArrayLike is only supported when using @babel/core@^7.10.0`,
|
||||||
);
|
);
|
||||||
}*/
|
}
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
|
|
||||||
if (assumeArray) {
|
if (assumeArray) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user