We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a348185 + 97c2476 commit 033f07eCopy full SHA for 033f07e
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "pegjs-loader",
3
- "version": "0.2.1",
+ "version": "0.2.2",
4
"description": "PEG.js loader for webpack",
5
"authors": [
6
"Andrey Subbotin <[email protected]> (https://github.com/eploko)",
src/index.js
@@ -1,7 +1,7 @@
import pegjs from 'pegjs';
import loaderUtils from 'loader-utils';
-export default (source) => {
+export default function loader(source) {
if (this.cacheable) {
this.cacheable();
7
}
@@ -13,4 +13,4 @@ export default (source) => {
13
const pegOptions = { output: 'source', cache: cacheParserResults };
14
15
return `module.exports = ${pegjs.buildParser(source, pegOptions)};`;
16
-};
+}
0 commit comments