UNPKG
hson-loader
Version:
latest (2.0.0)
2.0.0
1.0.0
hson loader module for webpack
github.com/kentcdodds/hson-loader
kentcdodds/hson-loader
hson-loader
/
index.js
9 lines
(7 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
var
hanson =
require
(
'hanson'
);
module
.
exports
=
function
(
source
) {
this
.
cacheable
&&
this
.
cacheable
();
var
value = hanson.
parse
(source);
this
.
value
= [value];
return
'module.exports = '
+ hanson.
stringify
(value); };