Add additional support for loose mode in helper-module-transforms (#6742)
This commit is contained in:
@@ -144,7 +144,9 @@ export default function({ types: t, template }, options) {
|
||||
header.loc = metadata.loc;
|
||||
|
||||
headers.push(header);
|
||||
headers.push(...buildNamespaceInitStatements(meta, metadata));
|
||||
headers.push(
|
||||
...buildNamespaceInitStatements(meta, metadata, loose),
|
||||
);
|
||||
}
|
||||
|
||||
ensureStatementsHoisted(headers);
|
||||
|
||||
Reference in New Issue
Block a user