From c955fef02eb87dc85eb994de632a5a240a8ecf93 Mon Sep 17 00:00:00 2001 From: Christopher Martin Date: Thu, 15 Jul 2021 09:53:50 -0500 Subject: [PATCH] fix: file.includes errors --- package.json | 3 ++- patches/twig+1.15.4.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 patches/twig+1.15.4.patch diff --git a/package.json b/package.json index 089546a..59f9829 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/patches/twig+1.15.4.patch b/patches/twig+1.15.4.patch new file mode 100644 index 0000000..cc06c9e --- /dev/null +++ b/patches/twig+1.15.4.patch @@ -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,