1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
metamask-extension/patches/node-sass+4.14.1.patch
Etienne Dusseault f196c9feb8
Add Lavamoat to build system (#9939)
* lavamoat - run build system in lavamoat

* lavamoat/allow-scripts - add missing policy entry

* update viz and lavvamoat

* trim policy file

* bump viz

* prue policy override

* regen policy file

* Update package.json

* Update package.json

* Apply suggestions from code review

Co-authored-by: kumavis <kumavis@users.noreply.github.com>

* update policy, remove redundant patches

* use yarn setup in CI

Co-authored-by: kumavis <aaron@kumavis.me>
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
2021-02-22 22:43:29 +08:00

14 lines
608 B
Diff

diff --git a/node_modules/node-sass/lib/index.js b/node_modules/node-sass/lib/index.js
index 3f20708..425e97c 100644
--- a/node_modules/node-sass/lib/index.js
+++ b/node_modules/node-sass/lib/index.js
@@ -166,6 +166,8 @@ function buildIncludePaths(options) {
options.includePaths = options.includePaths || [];
if (process.env.hasOwnProperty('SASS_PATH')) {
+ //quick workaround for SASS_PATH.split undefined under lavamoat
+ process.env.SASS_PATH.split = String.prototype.split
options.includePaths = options.includePaths.concat(
process.env.SASS_PATH.split(path.delimiter)
);