Add additional support for loose mode in helper-module-transforms (#6742)

This commit is contained in:
Brian Ng
2017-11-05 19:54:14 -06:00
committed by Henry Zhu
parent e8a33165ff
commit d81cca3b5f
268 changed files with 2401 additions and 28 deletions

View File

@@ -68,7 +68,9 @@ export default function({ types: t }, options) {
}
}
headers.push(...buildNamespaceInitStatements(meta, metadata));
headers.push(
...buildNamespaceInitStatements(meta, metadata, loose),
);
}
ensureStatementsHoisted(headers);