From 2b620717603a6a2ba4d93ee1ca7334dc31500acf Mon Sep 17 00:00:00 2001 From: Nathan Faubion Date: Mon, 2 Nov 2015 14:04:58 -0600 Subject: Remove `require-path`, use relative paths for PS Fixes #15 Removes the `require-path` option and fixes it to '../'. When generating the temporary module for Webpack, use a relative path to the output directory so it doesn't need to be in `modulesDirectories`. --- src/PursLoader/Loader.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/PursLoader/Loader.js') diff --git a/src/PursLoader/Loader.js b/src/PursLoader/Loader.js index 98459b6..45e9c2f 100644 --- a/src/PursLoader/Loader.js +++ b/src/PursLoader/Loader.js @@ -12,8 +12,18 @@ function relative(from) { }; } +function joinPath(a) { + return function(b) { + return path.join(a, b); + }; +} + exports.cwd = cwd; exports.relative = relative; +exports.joinPath = joinPath; + exports.resolve = path.resolve; + +exports.dirname = path.dirname; -- cgit v1.2.3