aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Loader.js
diff options
context:
space:
mode:
authorNathan Faubion <nathan@n-son.com>2015-11-02 14:04:58 -0600
committerNathan Faubion <nathan@n-son.com>2015-11-02 14:16:21 -0600
commit2b620717603a6a2ba4d93ee1ca7334dc31500acf (patch)
tree7548d0a34052169d853ecd5959eb6f1663c129d1 /src/PursLoader/Loader.js
parent8a0ac07ec2c568b8e9bd06cfd0429c6d6aa836e5 (diff)
downloadpurs-loader-2b620717603a6a2ba4d93ee1ca7334dc31500acf.tar.gz
purs-loader-2b620717603a6a2ba4d93ee1ca7334dc31500acf.tar.zst
purs-loader-2b620717603a6a2ba4d93ee1ca7334dc31500acf.zip
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`.
Diffstat (limited to 'src/PursLoader/Loader.js')
-rw-r--r--src/PursLoader/Loader.js10
1 files changed, 10 insertions, 0 deletions
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) {
12 }; 12 };
13} 13}
14 14
15function joinPath(a) {
16 return function(b) {
17 return path.join(a, b);
18 };
19}
20
15exports.cwd = cwd; 21exports.cwd = cwd;
16 22
17exports.relative = relative; 23exports.relative = relative;
18 24
25exports.joinPath = joinPath;
26
19exports.resolve = path.resolve; 27exports.resolve = path.resolve;
28
29exports.dirname = path.dirname;