1 | 'use strict';
|
2 |
|
3 | exports.path = require('path').dirname(require.main.filename);
|
4 |
|
5 | exports.resolve = function(pathToModule) {
|
6 | return exports.path + pathToModule;
|
7 | };
|
8 |
|
9 | exports.require = function(pathToModule) {
|
10 | var r = 'function' === typeof __webpack_require__
|
11 | ? __non_webpack_require__
|
12 | : require;
|
13 | return r(exports.resolve(pathToModule));
|
14 | };
|
15 |
|
16 | exports.toString = function() {
|
17 | return exports.path;
|
18 | };
|
19 |
|
20 | exports.setPath = function(explicitlySetPath) {
|
21 | exports.path = explicitlySetPath;
|
22 | }; |
\ | No newline at end of file |