Skip to content

Commit

Permalink
Merge pull request #5 from gisenberg/gisenberg/use-dirname
Browse files Browse the repository at this point in the history
Use __dirname instead of module.filename to better support bundlers.
  • Loading branch information
goenning committed Feb 17, 2017
2 parents f6950d4 + 5505708 commit a1de767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui.js
Expand Up @@ -5,7 +5,7 @@ const fileStore = { };
const fs = require('fs');
const path = require('path');
const _ = require('./utils.js');
const includesDir = path.join(path.dirname(module.filename), '../ui');
const includesDir = path.join(__dirname, '../ui');

const readFile = (name, callback) => {
if (fileStore[name]) {
Expand Down

0 comments on commit a1de767

Please sign in to comment.