diff options
Diffstat (limited to 'src/PursLoader/LoaderUtil.purs')
-rw-r--r-- | src/PursLoader/LoaderUtil.purs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/PursLoader/LoaderUtil.purs b/src/PursLoader/LoaderUtil.purs new file mode 100644 index 0000000..86be124 --- /dev/null +++ b/src/PursLoader/LoaderUtil.purs | |||
@@ -0,0 +1,13 @@ | |||
1 | module PursLoader.LoaderUtil | ||
2 | ( parseQuery | ||
3 | ) where | ||
4 | |||
5 | import Data.Foreign (Foreign()) | ||
6 | |||
7 | import PursLoader.LoaderRef (LoaderRef()) | ||
8 | |||
9 | foreign import parseQuery """ | ||
10 | function parseQuery(query){ | ||
11 | var loaderUtils = require('loader-utils'); | ||
12 | return loaderUtils.parseQuery(query); | ||
13 | }""" :: String -> Foreign | ||