From 7c6bc61818820800b5ad835b5e93617993a5ea12 Mon Sep 17 00:00:00 2001 From: Aleks Selivanov Date: Sun, 5 Aug 2018 01:23:29 +0300 Subject: [PATCH 1/2] Apply sheetify and glslify after babelify --- lib/graph-script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/graph-script.js b/lib/graph-script.js index 2336c304..77d5de37 100644 --- a/lib/graph-script.js +++ b/lib/graph-script.js @@ -55,9 +55,6 @@ function node (state, createEdge) { }) } - b.ignore('sheetify/insert') - b.transform(sheetify) - b.transform(glslify) if (state.metadata.babelifyDeps) { // Dependencies should be transformed, but their .babelrc should be ignored. @@ -86,6 +83,9 @@ function node (state, createEdge) { ] }) + b.ignore('sheetify/insert') + b.transform(sheetify, { global: true }) + b.transform(glslify, { global: true }) b.transform(brfs, { global: true }) b.transform(nanohtml, { global: true }) From 88d0c1e48d76e238fcf438d5d82d4d193762d10f Mon Sep 17 00:00:00 2001 From: Alexei Selivanov Date: Mon, 27 May 2019 20:48:07 +0300 Subject: [PATCH 2/2] Update sheetify --- lib/graph-script.js | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/graph-script.js b/lib/graph-script.js index 77d5de37..30ff86b9 100644 --- a/lib/graph-script.js +++ b/lib/graph-script.js @@ -55,7 +55,6 @@ function node (state, createEdge) { }) } - if (state.metadata.babelifyDeps) { // Dependencies should be transformed, but their .babelrc should be ignored. b.transform(tfilter(babelify, { include: /node_modules/ }), { diff --git a/package.json b/package.json index ba1cb6af..7b86034a 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "selfsigned": "^1.10.2", "send": "^0.16.1", "server-router": "^6.0.0", - "sheetify": "^7.1.0", + "sheetify": "^7.4.0", "split-require": "^3.1.1", "split2": "^2.2.0", "strip-ansi": "^4.0.0",