Skip to content

Commit 5505708

Browse files
committed
Use __dirname instead of module.filename to support bundlers better.
1 parent f6950d4 commit 5505708

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)