Skip to content

Commit

Permalink
fix: file.includes errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ccjjmartin committed Jul 15, 2021
1 parent aa3a895 commit c955fef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"twatch": "jest --no-coverage --watch --verbose",
"coverage": "yarn test && open-cli .coverage/lcov-report/index.html",
"format": "prettier --write \"**/*.{js,yml,scss,md}\"",
"lint-staged": "lint-staged"
"lint-staged": "lint-staged",
"postinstall": "npx patch-package"
},
"devDependencies": {
"@storybook/addon-a11y": "^6.1.18",
Expand Down
13 changes: 13 additions & 0 deletions patches/twig+1.15.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/twig/twig.js b/node_modules/twig/twig.js
index 9d50c4b..16fe0d7 100644
--- a/node_modules/twig/twig.js
+++ b/node_modules/twig/twig.js
@@ -8266,7 +8272,7 @@ module.exports = function (Twig) {
}).then(function (fileName) {
var embedOverrideTemplate = new Twig.Template({
data: token.output,
- id: state.template.id,
+ id: `${state.template.id}-override`,
base: state.template.base,
path: state.template.path,
url: state.template.url,

0 comments on commit c955fef

Please sign in to comment.