diff options
author | Alex Mingoia <talk@alexmingoia.com> | 2016-05-10 00:09:28 -0700 |
---|---|---|
committer | Alex Mingoia <talk@alexmingoia.com> | 2016-05-10 00:09:28 -0700 |
commit | 7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f (patch) | |
tree | 9ee160ba5b7dab900ccd1cfa657760e4103a175e /src/PursLoader/Plugin.js | |
parent | 777472b3830cb3d2ff3390003ea422c6d4522715 (diff) | |
download | purs-loader-7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f.tar.gz purs-loader-7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f.tar.zst purs-loader-7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f.zip |
Refactor to compile independently of purescript-webpack-plugin.
- Remove dependence on purescript-webpack-plugin
- Fixes double-compilation issue by loading compiled JS instead of adding
dependency.
- Uses `psc-ide-server` for fast rebuilds.
Diffstat (limited to 'src/PursLoader/Plugin.js')
-rw-r--r-- | src/PursLoader/Plugin.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/PursLoader/Plugin.js b/src/PursLoader/Plugin.js deleted file mode 100644 index ded6df5..0000000 --- a/src/PursLoader/Plugin.js +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | // module PursLoader.Plugin | ||
4 | |||
5 | function dependenciesOfFn(left, right, graph, node) { | ||
6 | try { | ||
7 | var dependencies = graph.dependenciesOf(node); | ||
8 | return right(dependencies); | ||
9 | } | ||
10 | catch (error) { | ||
11 | return left(error); | ||
12 | } | ||
13 | } | ||
14 | exports.dependenciesOfFn = dependenciesOfFn; | ||