We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d37d0 commit 86c57cfCopy full SHA for 86c57cf
src/index.js
@@ -1,7 +1,7 @@
1
import pegjs from 'pegjs';
2
import loaderUtils from 'loader-utils';
3
4
-export default (source) => {
+export default function loader(source) {
5
if (this.cacheable) {
6
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