diff options
author | Nathan Faubion <nathan@n-son.com> | 2015-11-02 14:04:58 -0600 |
---|---|---|
committer | Nathan Faubion <nathan@n-son.com> | 2015-11-02 14:16:21 -0600 |
commit | 2b620717603a6a2ba4d93ee1ca7334dc31500acf (patch) | |
tree | 7548d0a34052169d853ecd5959eb6f1663c129d1 /src/PursLoader/Loader.js | |
parent | 8a0ac07ec2c568b8e9bd06cfd0429c6d6aa836e5 (diff) | |
download | purs-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.js | 10 |
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 | ||
15 | function joinPath(a) { | ||
16 | return function(b) { | ||
17 | return path.join(a, b); | ||
18 | }; | ||
19 | } | ||
20 | |||
15 | exports.cwd = cwd; | 21 | exports.cwd = cwd; |
16 | 22 | ||
17 | exports.relative = relative; | 23 | exports.relative = relative; |
18 | 24 | ||
25 | exports.joinPath = joinPath; | ||
26 | |||
19 | exports.resolve = path.resolve; | 27 | exports.resolve = path.resolve; |
28 | |||
29 | exports.dirname = path.dirname; | ||