aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.js
diff options
context:
space:
mode:
authorCyril Sobierajewicz <38043722+cyrilfretlink@users.noreply.github.com>2019-03-18 14:06:12 +0100
committerGitHub <noreply@github.com>2019-03-18 14:06:12 +0100
commitd2dedd26a0ff0133904956198ce694c241214dfa (patch)
treeef9b29e62f4ae837926f1adcde72aa090ff8b461 /src/utils.js
parent8a5fcc4d12c8526871d82cb5ea5760a32d1ae813 (diff)
parent5f7ec4c3db5bd3c6388ca346ab2ebde794c1b07d (diff)
downloadpurs-loader-d2dedd26a0ff0133904956198ce694c241214dfa.tar.gz
purs-loader-d2dedd26a0ff0133904956198ce694c241214dfa.tar.zst
purs-loader-d2dedd26a0ff0133904956198ce694c241214dfa.zip
Merge pull request #3 from cyrilfretlink/4.1.0
Version 4.1.0
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js
index b6ccf81..829ba72 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -33,3 +33,7 @@ exports.resolvePursModule = ({ baseModulePath, baseModuleName, targetModuleName
33 `${path.join(...parts)}.purs`) 33 `${path.join(...parts)}.purs`)
34 : baseModulePath; 34 : baseModulePath;
35}; 35};
36
37exports.resolveForeignModule = pursModulePath =>
38 path.join(path.dirname(pursModulePath),
39 path.basename(pursModulePath, path.extname(pursModulePath)) + '.js');