From 1731224aaaaae6b56aaa1c05f8daaed56ff1d0c6 Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Mon, 26 Jul 2021 11:29:57 +0100 Subject: [PATCH] fix(client): remove source maps from bundler --- sandpack-client/gulpfile.js | 2 ++ sandpack-client/package.json | 3 ++- sandpack-react/package.json | 4 ++-- yarn.lock | 5 +++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sandpack-client/gulpfile.js b/sandpack-client/gulpfile.js index 7b66f9bdc..44b709628 100644 --- a/sandpack-client/gulpfile.js +++ b/sandpack-client/gulpfile.js @@ -1,4 +1,5 @@ const gulp = require("gulp"); +const removeSourcemaps = require("gulp-remove-sourcemaps"); gulp.task("copy-sandbox", () => gulp @@ -8,5 +9,6 @@ gulp.task("copy-sandbox", () => "!../../codesandbox-client/www/stats.json", "!../../codesandbox-client/www/public/**/*.*", ]) + .pipe(removeSourcemaps()) .pipe(gulp.dest("./sandpack/")) ); diff --git a/sandpack-client/package.json b/sandpack-client/package.json index 07e3363fc..097568bfe 100644 --- a/sandpack-client/package.json +++ b/sandpack-client/package.json @@ -1,6 +1,6 @@ { "name": "@codesandbox/sandpack-client", - "version": "0.1.4", + "version": "0.1.5", "description": "", "keywords": [], "repository": { @@ -40,6 +40,7 @@ "core-js": "^3.7.0", "cross-env": "^5.0.1", "gulp": "^3.9.1", + "gulp-remove-sourcemaps": "1.0.1", "regenerator-runtime": "^0.13.7", "rimraf": "^2.6.2", "ts-node": "^4.1.0", diff --git a/sandpack-react/package.json b/sandpack-react/package.json index 4a7c85d98..8f7287e08 100644 --- a/sandpack-react/package.json +++ b/sandpack-react/package.json @@ -1,6 +1,6 @@ { "name": "@codesandbox/sandpack-react", - "version": "0.1.4", + "version": "0.1.5", "description": "", "keywords": [], "repository": { @@ -43,7 +43,7 @@ "@codemirror/matchbrackets": "^0.18.0", "@codemirror/state": "^0.18.0", "@codemirror/view": "^0.18.0", - "@codesandbox/sandpack-client": "^0.1.4", + "@codesandbox/sandpack-client": "^0.1.5", "codesandbox-import-utils": "^2.2.3", "codesandbox-import-util-types": "^2.2.3", "prism-react-renderer": "^1.1.1" diff --git a/yarn.lock b/yarn.lock index 5f8726db5..0d0d4afcd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7725,6 +7725,11 @@ gud@^1.0.0: resolved "https://registry.yarnpkg.com/gud/-/gud-1.0.0.tgz#a489581b17e6a70beca9abe3ae57de7a499852c0" integrity sha512-zGEOVKFM5sVPPrYs7J5/hYEw2Pof8KCyOwyhG8sAF26mCAeUFAcYPu1mwB7hhpIP29zOIBaDqwuHdLp0jvZXjw== +gulp-remove-sourcemaps@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gulp-remove-sourcemaps/-/gulp-remove-sourcemaps-1.0.1.tgz#4298b15e02ebed3bf1a8dd10c2576916879c2f80" + integrity sha512-Gp5/CEVeIuXd7mo7GJCLtZo3Ncigt3LgK6JmllN80Ecl8bLh/nN0Knqr8XgZOb9aMPetFGy42gNbXRSqTAjEEg== + gulp-util@^3.0.0: version "3.0.8" resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f"