aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/src/entry.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-01-17 16:24:33 -0500
committereric thul <thul.eric@gmail.com>2015-01-17 16:24:33 -0500
commita92aa714f0a5436d9f06f82b3cad4df8129e4064 (patch)
treead7bb533a80a2a012d18317596bc5825ad1c2db8 /example/src/entry.js
parent051c54bc5fd21db7758abfc8cbd53921bf50495e (diff)
downloadpurs-loader-a92aa714f0a5436d9f06f82b3cad4df8129e4064.tar.gz
purs-loader-a92aa714f0a5436d9f06f82b3cad4df8129e4064.tar.zst
purs-loader-a92aa714f0a5436d9f06f82b3cad4df8129e4064.zip
Parsing module name from source
Resolves issue #3 since the the module name defined in the PureScript file is used to resolve the location of the CommonJS-generated output.
Diffstat (limited to 'example/src/entry.js')
-rw-r--r--example/src/entry.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/src/entry.js b/example/src/entry.js
index 4c15475..160bee4 100644
--- a/example/src/entry.js
+++ b/example/src/entry.js
@@ -2,4 +2,6 @@ var test = require('purs?output=output!./Test.purs');
2 2
3var foo = require('purs?output=output!./Foo.purs'); 3var foo = require('purs?output=output!./Foo.purs');
4 4
5console.log(test, foo); 5var baz = require('purs?output=output!./Foo/Baz.purs');
6
7console.log(test, foo, baz);