From cf5c2da0b0d9b02c0449d8f7b00eeddef437b7d8 Mon Sep 17 00:00:00 2001 From: Rico Kahler Date: Thu, 25 Mar 2021 04:21:54 -0400 Subject: [PATCH] fix(build): remove spread from build output --- package-lock.json | 235 +++++++++++++++++++++++++++++++++++++++++++++- package.json | 1 + rollup.config.js | 5 + 3 files changed, 240 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 2a0fb9d..24d3d5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "devDependencies": { "@babel/core": "^7.13.10", "@babel/plugin-proposal-class-properties": "^7.13.0", + "@babel/plugin-proposal-object-rest-spread": "^7.13.8", "@babel/plugin-transform-runtime": "^7.13.10", "@babel/preset-env": "^7.13.12", "@babel/preset-react": "^7.12.13", @@ -7630,7 +7631,239 @@ "validate-npm-package-name", "which", "worker-farm", - "write-file-atomic" + "write-file-atomic", + "agent-base", + "agentkeepalive", + "ansi-align", + "ansi-regex", + "ansi-styles", + "are-we-there-yet", + "asap", + "asn1", + "assert-plus", + "asynckit", + "aws-sign2", + "aws4", + "balanced-match", + "bcrypt-pbkdf", + "boxen", + "brace-expansion", + "buffer-from", + "builtins", + "byline", + "camelcase", + "capture-stack-trace", + "caseless", + "chalk", + "cidr-regex", + "cli-boxes", + "cliui", + "clone", + "code-point-at", + "color-convert", + "color-name", + "colors", + "combined-stream", + "concat-map", + "concat-stream", + "configstore", + "console-control-strings", + "copy-concurrently", + "core-util-is", + "create-error-class", + "cross-spawn", + "crypto-random-string", + "cyclist", + "dashdash", + "debug", + "decamelize", + "decode-uri-component", + "deep-extend", + "defaults", + "define-properties", + "delayed-stream", + "delegates", + "dot-prop", + "dotenv", + "duplexer3", + "duplexify", + "ecc-jsbn", + "emoji-regex", + "encoding", + "end-of-stream", + "env-paths", + "err-code", + "errno", + "es-abstract", + "es-to-primitive", + "es6-promise", + "es6-promisify", + "escape-string-regexp", + "execa", + "extend", + "extsprintf", + "fast-json-stable-stringify", + "flush-write-stream", + "forever-agent", + "form-data", + "from2", + "fs-minipass", + "fs.realpath", + "function-bind", + "gauge", + "genfun", + "get-caller-file", + "get-stream", + "getpass", + "global-dirs", + "got", + "har-schema", + "har-validator", + "has", + "has-flag", + "has-symbols", + "http-cache-semantics", + "http-proxy-agent", + "http-signature", + "https-proxy-agent", + "humanize-ms", + "iconv-lite", + "ignore-walk", + "import-lazy", + "ip", + "ip-regex", + "is-callable", + "is-ci", + "is-date-object", + "is-fullwidth-code-point", + "is-installed-globally", + "is-npm", + "is-obj", + "is-path-inside", + "is-redirect", + "is-regex", + "is-retry-allowed", + "is-stream", + "is-symbol", + "is-typedarray", + "isarray", + "isexe", + "isstream", + "jsbn", + "json-schema", + "json-stringify-safe", + "jsonparse", + "jsprim", + "latest-version", + "libnpmconfig", + "libnpmpublish", + "lodash._createset", + "lodash._root", + "lowercase-keys", + "make-dir", + "make-fetch-happen", + "mime-db", + "mime-types", + "minimatch", + "minimist", + "minizlib", + "ms", + "mute-stream", + "node-fetch-npm", + "npm-bundled", + "npm-logical-tree", + "npm-normalize-package-bin", + "npm-run-path", + "number-is-nan", + "oauth-sign", + "object-assign", + "object-keys", + "object.getownpropertydescriptors", + "os-homedir", + "os-tmpdir", + "p-finally", + "package-json", + "parallel-transform", + "path-exists", + "path-is-absolute", + "path-key", + "path-parse", + "performance-now", + "pify", + "prepend-http", + "process-nextick-args", + "promise-retry", + "promzard", + "proto-list", + "protoduck", + "prr", + "pseudomap", + "psl", + "pump", + "pumpify", + "punycode", + "qs", + "rc", + "registry-auth-token", + "registry-url", + "require-directory", + "require-main-filename", + "resolve-from", + "run-queue", + "safer-buffer", + "semver-diff", + "set-blocking", + "shebang-command", + "shebang-regex", + "signal-exit", + "smart-buffer", + "socks", + "socks-proxy-agent", + "spdx-correct", + "spdx-exceptions", + "spdx-expression-parse", + "spdx-license-ids", + "split-on-first", + "sshpk", + "stream-each", + "stream-iterate", + "stream-shift", + "strict-uri-encode", + "string_decoder", + "string-width", + "strip-ansi", + "strip-eof", + "strip-json-comments", + "supports-color", + "term-size", + "through", + "through2", + "timed-out", + "tough-cookie", + "tunnel-agent", + "tweetnacl", + "typedarray", + "unique-slug", + "unique-string", + "unzip-response", + "uri-js", + "url-parse-lax", + "util-deprecate", + "util-extend", + "util-promisify", + "verror", + "wcwidth", + "which-module", + "wide-align", + "widest-line", + "wrap-ansi", + "wrappy", + "xdg-basedir", + "xtend", + "y18n", + "yallist", + "yargs", + "yargs-parser" ], "dev": true, "dependencies": { diff --git a/package.json b/package.json index af6dd02..8d036fb 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "devDependencies": { "@babel/core": "^7.13.10", "@babel/plugin-proposal-class-properties": "^7.13.0", + "@babel/plugin-proposal-object-rest-spread": "^7.13.8", "@babel/plugin-transform-runtime": "^7.13.10", "@babel/preset-env": "^7.13.12", "@babel/preset-react": "^7.12.13", diff --git a/rollup.config.js b/rollup.config.js index e0f26f4..1b8ba9b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -25,6 +25,11 @@ const config = { plugins: [ '@babel/plugin-transform-runtime', '@babel/plugin-proposal-class-properties', + // for some reason, sanity's webpack config doesn't like spreads + [ + '@babel/plugin-proposal-object-rest-spread', + { loose: true, useBuiltIns: true }, + ], ], babelHelpers: 'runtime', extensions,