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,