diff --git a/5to6-codemod_exports.js.html b/5to6-codemod_exports.js.html index c633c2e..eb8b3f4 100644 --- a/5to6-codemod_exports.js.html +++ b/5to6-codemod_exports.js.html @@ -347,7 +347,7 @@

5to6-codemod/exports.js


diff --git a/esm.js.html b/esm.js.html index e4fcb22..9367302 100644 --- a/esm.js.html +++ b/esm.js.html @@ -151,7 +151,7 @@

esm.js


diff --git a/global.html b/global.html index b9af9d6..8b255f5 100644 --- a/global.html +++ b/global.html @@ -4610,7 +4610,7 @@
Type:

diff --git a/index.html b/index.html index 5c217fe..408b9d1 100644 --- a/index.html +++ b/index.html @@ -118,20 +118,14 @@

Exports

module.exports = Rosario;
 module.exports.Pilar = Pilar;
 
-module.exports = {
-  Rosario,
-  Pilar,
-};
-
 // Becomes
 
 export default Rosario;
 export { Pilar }
-
-const exported = { Rosario, Pilar };
-export default exported;
-export { Rosario, Pilar };
 
+
+

⚠️: Do not do module.exports = { Pilar }, as the latest version of the parser doesn't support it.

+

🚀 Usage

The package comes with a binary that you can execute from your package.json, or with npm/yarn:

# From the package.json
@@ -143,6 +137,9 @@ 

🚀 Usage

# Yarn yarn cjs2esm +# PNPM +pnpm exec cjs2esm +

Configuration

The tool has a lot of different settings you can change to customize how the imports and extensions are handled:

@@ -372,7 +369,7 @@

💡 Motivation


diff --git a/index.js.html b/index.js.html index f666dc0..d11d74b 100644 --- a/index.js.html +++ b/index.js.html @@ -631,7 +631,7 @@

index.js


diff --git a/transformer.js.html b/transformer.js.html index 60dc031..28cdadf 100644 --- a/transformer.js.html +++ b/transformer.js.html @@ -238,7 +238,7 @@

transformer.js


diff --git a/typedef.js.html b/typedef.js.html index 750841c..5fcf3ed 100644 --- a/typedef.js.html +++ b/typedef.js.html @@ -165,7 +165,7 @@

typedef.js


diff --git a/utils.js.html b/utils.js.html index 3813499..7d08e19 100644 --- a/utils.js.html +++ b/utils.js.html @@ -311,7 +311,7 @@

utils.js