Last active
August 10, 2021 21:06
-
-
Save jshcrowthe/acea97f8b18e81c0a797137b8a38f1e4 to your computer and use it in GitHub Desktop.
test-module
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 characters
console.log('Loaded test-module via pkg.browser'); | |
export function logModule() { | |
console.log('`logModule` called in test-module'); | |
} | |
export function totallyUnused() { | |
console.log('I go totally unused!'); | |
} |
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 characters
console.log('Loaded test-module via pkg.browser'); | |
function logModule() { | |
console.log('`logModule` called in test-module'); | |
} | |
function totallyUnused() { | |
console.log('I go totally unused!'); | |
} | |
exports.logModule = logModule; | |
exports.totallyUnused = totallyUnused; |
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 characters
console.log('Loaded test-module via pkg.module'); | |
export function logModule() { | |
console.log('`logModule` called in test-module'); | |
} | |
export function totallyUnused() { | |
console.log('I go totally unused!'); | |
} |
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 characters
console.log('Loaded test-module via pkg.main'); | |
function logModule() { | |
console.log('`logModule` called in test-module'); | |
} | |
function totallyUnused() { | |
console.log('I go totally unused!'); | |
} | |
exports.logModule = logModule; | |
exports.totallyUnused = totallyUnused; |
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 characters
{ | |
"name": "test-module", | |
"version": "1.0.0", | |
"description": "A test module exporting a `pkg.module`, `pkg.browser`, and `pkg.main`", | |
"author": "Josh Crowther <[email protected]>", | |
"license": "MIT", | |
"main": "index.js", | |
"browser": { | |
"index.js": "index.browser.js", | |
"index.esm.js": "index.browser.esm.js", | |
"module": "index.esm.js", | |
"jsnext:main": "dist/index.esm.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment