From b2927e288a9af4cc55cab1dc350a033cf6a774e8 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Thu, 25 Apr 2019 13:51:37 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20move=20`codemirror`=20to=20=E2=80=9Cexte?= =?UTF-8?q?rnal=E2=80=9D=20config=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/package.json | 1 - site/rollup.config.js | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/site/package.json b/site/package.json index e2e68ad5ca..00f302b2bc 100644 --- a/site/package.json +++ b/site/package.json @@ -15,7 +15,6 @@ }, "dependencies": { "@polka/send": "^1.0.0-next.2", - "codemirror": "^5.44.0", "devalue": "^1.1.0", "do-not-zip": "^1.0.0", "express-session": "^1.15.6", diff --git a/site/rollup.config.js b/site/rollup.config.js index d39db86c0c..942190694e 100644 --- a/site/rollup.config.js +++ b/site/rollup.config.js @@ -74,9 +74,12 @@ export default { commonjs(), json() ], - external: Object.keys(pkg.dependencies).concat( + external: [ + 'codemirror', + ...Object.keys(pkg.dependencies || {}).concat( require('module').builtinModules || Object.keys(process.binding('natives')) - ), + ) + ] // temporary, pending Rollup 1.0 experimentalCodeSplitting: true