Skip to content

Commit a1de767

Browse files
authored
Merge pull request #5 from gisenberg/gisenberg/use-dirname
Use __dirname instead of module.filename to better support bundlers.
2 parents f6950d4 + 5505708 commit a1de767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fileStore = { };
55
const fs = require('fs');
66
const path = require('path');
77
const _ = require('./utils.js');
8-
const includesDir = path.join(path.dirname(module.filename), '../ui');
8+
const includesDir = path.join(__dirname, '../ui');
99

1010
const readFile = (name, callback) => {
1111
if (fileStore[name]) {

0 commit comments

Comments
 (0)