mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Added support for plugin relative imports
This commit is contained in:
@@ -3,6 +3,9 @@ const path = require('path');
|
||||
const resolve = require('resolve');
|
||||
const debug = require('debug')('talk:plugins');
|
||||
|
||||
// Add support for require rewriting.
|
||||
require('app-module-path').addPath(__dirname);
|
||||
|
||||
let plugins = {};
|
||||
|
||||
// Try to parse the plugins.json file, logging out an error if the plugins.json
|
||||
|
||||
Reference in New Issue
Block a user