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 8aed9a2 commit 8d876dfCopy full SHA for 8d876df
index.js
@@ -2,7 +2,7 @@ const acorn = require('acorn');
2
const escodegen = require('escodegen');
3
4
module.exports = function(source) {
5
- this.cacheable();
+ this.cacheable && this.cacheable();
6
const tree = acorn.parse(source, { sourceType: 'module' });
7
traverse(tree);
8
return escodegen.generate(tree);
package.json
@@ -1,6 +1,6 @@
1
{
"name": "template-string-optimize-loader",
- "version": "2.1.0",
+ "version": "2.2.0",
"description": "template string optimize loader module for webpack",
"main": "index.js",
"scripts": {
0 commit comments