Skip to content

Commit 033f07e

Browse files
committed
Merge branch 'release/0.2.2'
2 parents a348185 + 97c2476 commit 033f07e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pegjs-loader",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "PEG.js loader for webpack",
55
"authors": [
66
"Andrey Subbotin <[email protected]> (https://github.com/eploko)",

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pegjs from 'pegjs';
22
import loaderUtils from 'loader-utils';
33

4-
export default (source) => {
4+
export default function loader(source) {
55
if (this.cacheable) {
66
this.cacheable();
77
}
@@ -13,4 +13,4 @@ export default (source) => {
1313
const pegOptions = { output: 'source', cache: cacheParserResults };
1414

1515
return `module.exports = ${pegjs.buildParser(source, pegOptions)};`;
16-
};
16+
}

0 commit comments

Comments
 (0)