Last active
June 7, 2021 21:28
-
-
Save mfdj/d7c443bf7c387ce92463adb77d16cf6f to your computer and use it in GitHub Desktop.
Revisions
-
mfdj renamed this gist
Jun 7, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mfdj renamed this gist
Jun 7, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mfdj created this gist
Jun 7, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ```sh $ node index.mjs π module-a pre-export { name: 'module-a π', obj: { a: 'π¨π¦', b: 'bee', c: 'see' } } π» module-b pre-export { name: 'module-b π»', obj: { a: 'π¨π¦', b: 'π', c: 'see' } } { moduleA: { name: 'module-a π', obj: { a: 'π¨π¦', b: 'π', c: 'π' } }, moduleB: { name: 'module-b π»', obj: { a: 'π¨π¦', b: 'π', c: 'π' } }, moduleObjectExport: { a: 'π¨π¦', b: 'π', c: 'π' } } ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import moduleA from './module-a.mjs'; import moduleB from './module-b.mjs'; import moduleObjectExport from './module-object-export.mjs'; moduleObjectExport.c = 'π'; console.log({ moduleA, moduleB, moduleObjectExport }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import obj from './module-scope-object-export.mjs'; obj.a = 'π¨π¦'; const result = { name: 'module-a π', obj }; console.log('π module-a pre-export', result); export default result; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import obj from './module-scope-object-export.mjs'; obj.b = 'π'; const result = { name: 'module-b π»', obj }; console.log('π» module-b pre-export', result); export default result; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ export default { a: 'eh', b: 'bee', c: 'see', };