Skip to content

Instantly share code, notes, and snippets.

@ryanwilsonperkin
Created January 23, 2026 21:46
Show Gist options
  • Select an option

  • Save ryanwilsonperkin/0f22254e746693c01d11fd80a2f23e18 to your computer and use it in GitHub Desktop.

Select an option

Save ryanwilsonperkin/0f22254e746693c01d11fd80a2f23e18 to your computer and use it in GitHub Desktop.
export default function add(a,b) {return a+b};
export {default as add} from './add.mjs';
import {add as addFn} from './util/index.mjs';
addFn(1,1);
{
"name": "unbarrelify-renames",
"version": "1.0.0",
"main": "src/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"type": "module",
"author": "",
"license": "ISC",
"description": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment