Skip to content

Instantly share code, notes, and snippets.

@evantahler
Created August 13, 2018 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evantahler/41d97f2938f2017ffec4965431906069 to your computer and use it in GitHub Desktop.
Save evantahler/41d97f2938f2017ffec4965431906069 to your computer and use it in GitHub Desktop.
require-shim.js
// in your action
{formatter} = requrie('../helper.js')
// in helper.js
const path = require('path')
exports.formatter = require(path.join(__dirname, 'path', 'that', 'is', 'really', 'long', 'formatter.js'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment