From aa85390a9612f443a87a5187aac304b4e42c3267 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Tue, 1 Jun 2021 04:45:30 +0200 Subject: [PATCH] Fixed rollup message errors --- src/api/package.json | 4 ++-- src/api/rollup.config.js | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/api/package.json b/src/api/package.json index ca552b6..5fecf71 100644 --- a/src/api/package.json +++ b/src/api/package.json @@ -26,14 +26,13 @@ "prettier": "^2.3.0" }, "dependencies": { - "rollup": "^2.50.3", "@babel/cli": "^7.14.3", "@babel/core": "^7.14.3", "@babel/eslint-parser": "^7.14.3", "@babel/eslint-plugin": "^7.13.16", "@babel/preset-env": "^7.14.2", - "@rollup/plugin-json": "^4.1.0", "@koa/router": "^10.0.0", + "@rollup/plugin-json": "^4.1.0", "apollo-server-koa": "2.25", "cookie": "^0.4.1", "csv": "^5.5.0", @@ -56,6 +55,7 @@ "passport-google-oauth": "^2.0.0", "passport-oauth": "^1.0.0", "rimraf": "^3.0.2", + "rollup": "^2.50.3", "sift": "^13.5.4", "sql-formatter": "^4.0.2", "wkt": "^0.1.1" diff --git a/src/api/rollup.config.js b/src/api/rollup.config.js index f6fd911..0b6ee42 100644 --- a/src/api/rollup.config.js +++ b/src/api/rollup.config.js @@ -2,6 +2,37 @@ import json from '@rollup/plugin-json' export default { input: 'src/index.js', + external: [ + 'http', + 'koa', + 'koa-static', + 'koa-mount', + '@koa/router', + 'koa-compress', + 'koa-bodyparser', + 'koa-session', + 'koa-passport', + 'zlib', + 'path', + 'nanoid', + 'base64url', + 'apollo-server-koa', + 'node-fetch', + 'passport-oauth', + 'dotenv', + 'url', + 'fs', + 'mssql', + 'graphql-tools', + 'dataloader', + 'sift', + 'sql-formatter', + 'graphql-type-json', + 'graphql', + 'wkt', + 'csv', + 'perf_hooks', + ], output: { file: 'bin/index.cjs', format: 'cjs',