Comparing version 0.4.3 to 0.4.4
@@ -69,4 +69,5 @@ function createExportWriter(context) { | ||
} | ||
context.s.append( | ||
`export default ${context.moduleNodes.length ? "_module_.exports" : "_exports_"};\n` | ||
context.s.appendLeft( | ||
context.topLevel.get().end, | ||
`\nexport default ${context.moduleNodes.length ? "_module_.exports" : "_exports_"};` | ||
); | ||
@@ -73,0 +74,0 @@ } |
{ | ||
"name": "cjs-es", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Transform CommonJS module into ES module.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -238,2 +238,6 @@ cjs-es | ||
* 0.4.4 (May 1, 2018) | ||
- Fix: write export statement after last statement instead of the end of the file. | ||
* 0.4.3 (May 1, 2018) | ||
@@ -240,0 +244,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36742
912
305