Skip to content

Commit af7e59b

Browse files
authored
Fix theme config (#544)
1 parent f04b0c5 commit af7e59b

File tree

3 files changed

+24
-221
lines changed

3 files changed

+24
-221
lines changed

packages/gatsby-theme-mdx/gatsby-config.js

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module.exports = {
2121
options: {
2222
path: 'docs'
2323
}
24+
},
25+
{
26+
resolve: 'gatsby-plugin-compile-es6-packages',
27+
options: {
28+
modules: ['gatsby-theme-mdx']
29+
}
2430
}
2531
]
2632
}

packages/gatsby-theme-mdx/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"emotion-theming": "^10.0.10",
2626
"gatsby-mdx": "^0.5.6",
2727
"gatsby-plugin-catch-links": "^2.0.13",
28+
"gatsby-plugin-compile-es6-packages": "^1.1.0",
2829
"gatsby-plugin-emotion": "^4.0.6",
2930
"gatsby-plugin-google-fonts": "^0.0.4",
3031
"gatsby-plugin-page-creator": "^2.0.12",

yarn.lock

+17-221
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@ abbrev@1:
26652665
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
26662666
integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==
26672667

2668-
accepts@^1.3.0, accepts@^1.3.5, accepts@~1.3.4, accepts@~1.3.5:
2668+
accepts@^1.3.0, accepts@~1.3.4, accepts@~1.3.5:
26692669
version "1.3.5"
26702670
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2"
26712671
integrity sha1-63d99gEXI6OxTopywIBcjoZ0a9I=
@@ -2876,11 +2876,6 @@ aproba@^2.0.0:
28762876
resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc"
28772877
integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==
28782878

2879-
arch@^2.1.0:
2880-
version "2.1.1"
2881-
resolved "https://registry.yarnpkg.com/arch/-/arch-2.1.1.tgz#8f5c2731aa35a30929221bb0640eed65175ec84e"
2882-
integrity sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg==
2883-
28842879
are-we-there-yet@~1.1.2:
28852880
version "1.1.5"
28862881
resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21"
@@ -4317,14 +4312,6 @@ clipboard@^2.0.0:
43174312
select "^1.1.2"
43184313
tiny-emitter "^2.0.0"
43194314

4320-
clipboardy@^1.2.3:
4321-
version "1.2.3"
4322-
resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-1.2.3.tgz#0526361bf78724c1f20be248d428e365433c07ef"
4323-
integrity sha512-2WNImOvCRe6r63Gk9pShfkwXsVtKCroMAevIbiae021mS850UkWPbevxsBz3tnvjZIEGvlwaqCPsw+4ulzNgJA==
4324-
dependencies:
4325-
arch "^2.1.0"
4326-
execa "^0.8.0"
4327-
43284315
cliui@^3.2.0:
43294316
version "3.2.0"
43304317
resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
@@ -6220,14 +6207,6 @@ eslint-plugin-graphql@^2.0.0:
62206207
graphql-config "^2.0.1"
62216208
lodash "^4.11.1"
62226209

6223-
eslint-plugin-graphql@^3.0.3:
6224-
version "3.0.3"
6225-
resolved "https://registry.yarnpkg.com/eslint-plugin-graphql/-/eslint-plugin-graphql-3.0.3.tgz#9ecdaf5ea8397973e29cea9dbf860420694e9df0"
6226-
integrity sha512-hHwLyxSkC5rkakJ/SNTWwOswPdVhvfyMCnEOloevrLQIOHUNVIQBg1ljCaRe9C40HdzgcGUFUdG5BHLCKm8tuw==
6227-
dependencies:
6228-
graphql-config "^2.0.1"
6229-
lodash "^4.11.1"
6230-
62316210
eslint-plugin-import@^2.14.0, eslint-plugin-import@^2.9.0:
62326211
version "2.16.0"
62336212
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.16.0.tgz#97ac3e75d0791c4fac0e15ef388510217be7f66f"
@@ -6573,16 +6552,6 @@ express-graphql@^0.6.12:
65736552
http-errors "^1.3.0"
65746553
raw-body "^2.3.2"
65756554

6576-
express-graphql@^0.7.1:
6577-
version "0.7.1"
6578-
resolved "https://registry.yarnpkg.com/express-graphql/-/express-graphql-0.7.1.tgz#6c7712ee966c3aba1930e064ea4c8181e56fd3ef"
6579-
integrity sha512-YpheAqTbSKpb5h57rV2yu2dPNUBi4FvZDspZ5iEV3ov34PBRgnM4lEBkv60+vZRJ6SweYL14N8AGYdov7g6ooQ==
6580-
dependencies:
6581-
accepts "^1.3.5"
6582-
content-type "^1.0.4"
6583-
http-errors "^1.7.1"
6584-
raw-body "^2.3.3"
6585-
65866555
express@^4.16.3, express@^4.16.4:
65876556
version "4.16.4"
65886557
resolved "https://registry.yarnpkg.com/express/-/express-4.16.4.tgz#fddef61926109e24c515ea97fd2f1bdbf62df12e"
@@ -7223,41 +7192,6 @@ gatsby-cli@^2.5.7:
72237192
yargs "^12.0.5"
72247193
yurnalist "^1.0.2"
72257194

7226-
gatsby-cli@^2.5.9:
7227-
version "2.5.9"
7228-
resolved "https://registry.yarnpkg.com/gatsby-cli/-/gatsby-cli-2.5.9.tgz#ec18e96c2e13414294441acb727927ef330ba536"
7229-
integrity sha512-Z7kPib4fUaSLTd/1EBxsKgT55sVhy2fNmL6wnWqfkk2O4CLWhG0nAqqKrumPWQQqZAYZDFDHycb05VbDfDpmRg==
7230-
dependencies:
7231-
"@babel/code-frame" "^7.0.0"
7232-
"@babel/runtime" "^7.0.0"
7233-
bluebird "^3.5.0"
7234-
ci-info "^2.0.0"
7235-
clipboardy "^1.2.3"
7236-
common-tags "^1.4.0"
7237-
configstore "^4.0.0"
7238-
convert-hrtime "^2.0.0"
7239-
core-js "^2.5.0"
7240-
envinfo "^5.8.1"
7241-
execa "^0.8.0"
7242-
fs-exists-cached "^1.0.0"
7243-
fs-extra "^4.0.1"
7244-
gatsby-telemetry "^1.0.7"
7245-
hosted-git-info "^2.6.0"
7246-
is-valid-path "^0.1.1"
7247-
lodash "^4.17.10"
7248-
meant "^1.0.1"
7249-
node-fetch "2.3.0"
7250-
opentracing "^0.14.3"
7251-
pretty-error "^2.1.1"
7252-
prompts "^2.0.4"
7253-
resolve-cwd "^2.0.0"
7254-
source-map "^0.5.7"
7255-
stack-trace "^0.0.10"
7256-
update-notifier "^2.3.0"
7257-
uuid "3.3.2"
7258-
yargs "^12.0.5"
7259-
yurnalist "^1.0.2"
7260-
72617195
gatsby-link@^2.0.16:
72627196
version "2.0.16"
72637197
resolved "https://registry.yarnpkg.com/gatsby-link/-/gatsby-link-2.0.16.tgz#5d140e43f3aec6dd59e01c1468d77a54092370c5"
@@ -7336,6 +7270,14 @@ gatsby-plugin-catch-links@^2.0.13:
73367270
"@babel/runtime" "^7.0.0"
73377271
escape-string-regexp "^1.0.5"
73387272

7273+
gatsby-plugin-compile-es6-packages@^1.1.0:
7274+
version "1.1.0"
7275+
resolved "https://registry.yarnpkg.com/gatsby-plugin-compile-es6-packages/-/gatsby-plugin-compile-es6-packages-1.1.0.tgz#5045c3bbf408c6d639b317ebffd8e9128073c4f9"
7276+
integrity sha512-YjB9LDyUBcWfVVF8mN+t4OziYghys08nb2vpYgW+sqXO4giHRLWpANFmVUXW+H2c1g8fAwPlKYcwDXyqNunibw==
7277+
dependencies:
7278+
"@babel/runtime" "^7.0.0"
7279+
regex-escape "^3.4.8"
7280+
73397281
gatsby-plugin-emotion@^4.0.6:
73407282
version "4.0.6"
73417283
resolved "https://registry.yarnpkg.com/gatsby-plugin-emotion/-/gatsby-plugin-emotion-4.0.6.tgz#5f496df66b2640874fcb073e4f2d8a2a1a4632da"
@@ -7400,135 +7342,6 @@ gatsby-telemetry@^1.0.7:
74007342
stack-utils "1.0.2"
74017343
uuid "3.3.2"
74027344

7403-
gatsby@^2.3.19:
7404-
version "2.3.24"
7405-
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-2.3.24.tgz#eb7dba769f451e0d9feac181d681075f8e0f8d62"
7406-
integrity sha512-B3P7abXJZDircSQXQNCCNdhYasjRu2sC3XtRZIh2loYtNDebJCfX6qYmjAxpkWswnqh39F1oix7F0/NEDvlXyg==
7407-
dependencies:
7408-
"@babel/code-frame" "^7.0.0"
7409-
"@babel/core" "^7.0.0"
7410-
"@babel/parser" "^7.0.0"
7411-
"@babel/polyfill" "^7.0.0"
7412-
"@babel/runtime" "^7.0.0"
7413-
"@babel/traverse" "^7.0.0"
7414-
"@gatsbyjs/relay-compiler" "2.0.0-printer-fix.2"
7415-
"@mikaelkristiansson/domready" "^1.0.9"
7416-
"@pieh/friendly-errors-webpack-plugin" "1.7.0-chalk-2"
7417-
"@reach/router" "^1.1.1"
7418-
"@stefanprobst/lokijs" "^1.5.6-b"
7419-
address "1.0.3"
7420-
autoprefixer "^9.4.3"
7421-
babel-core "7.0.0-bridge.0"
7422-
babel-eslint "^9.0.0"
7423-
babel-loader "^8.0.0"
7424-
babel-plugin-add-module-exports "^0.2.1"
7425-
babel-plugin-dynamic-import-node "^1.2.0"
7426-
babel-plugin-remove-graphql-queries "^2.6.3"
7427-
babel-preset-gatsby "^0.1.11"
7428-
better-opn "0.1.4"
7429-
better-queue "^3.8.6"
7430-
bluebird "^3.5.0"
7431-
browserslist "3.2.8"
7432-
cache-manager "^2.9.0"
7433-
cache-manager-fs-hash "^0.0.6"
7434-
chalk "^2.3.2"
7435-
chokidar "2.1.2"
7436-
common-tags "^1.4.0"
7437-
compression "^1.7.3"
7438-
convert-hrtime "^2.0.0"
7439-
copyfiles "^1.2.0"
7440-
core-js "^2.5.0"
7441-
css-loader "^1.0.0"
7442-
debug "^3.1.0"
7443-
del "^3.0.0"
7444-
detect-port "^1.2.1"
7445-
devcert-san "^0.3.3"
7446-
dotenv "^4.0.0"
7447-
eslint "^5.6.0"
7448-
eslint-config-react-app "^3.0.0"
7449-
eslint-loader "^2.1.0"
7450-
eslint-plugin-flowtype "^2.46.1"
7451-
eslint-plugin-graphql "^3.0.3"
7452-
eslint-plugin-import "^2.9.0"
7453-
eslint-plugin-jsx-a11y "^6.0.3"
7454-
eslint-plugin-react "^7.8.2"
7455-
event-source-polyfill "^1.0.5"
7456-
express "^4.16.3"
7457-
express-graphql "^0.7.1"
7458-
fast-levenshtein "~2.0.4"
7459-
file-loader "^1.1.11"
7460-
flat "^4.0.0"
7461-
fs-exists-cached "1.0.0"
7462-
fs-extra "^5.0.0"
7463-
gatsby-cli "^2.5.9"
7464-
gatsby-link "^2.0.16"
7465-
gatsby-plugin-page-creator "^2.0.12"
7466-
gatsby-react-router-scroll "^2.0.7"
7467-
gatsby-telemetry "^1.0.7"
7468-
glob "^7.1.1"
7469-
graphql "^14.1.1"
7470-
graphql-compose "6.0.3"
7471-
graphql-playground-middleware-express "^1.7.10"
7472-
hash-mod "^0.0.5"
7473-
invariant "^2.2.4"
7474-
is-relative "^1.0.0"
7475-
is-relative-url "^2.0.0"
7476-
is-wsl "^1.1.0"
7477-
jest-worker "^23.2.0"
7478-
joi "12.x.x"
7479-
json-loader "^0.5.7"
7480-
json-stringify-safe "^5.0.1"
7481-
kebab-hash "^0.1.2"
7482-
lodash "^4.17.10"
7483-
md5 "^2.2.1"
7484-
md5-file "^3.1.1"
7485-
mime "^2.2.0"
7486-
mini-css-extract-plugin "^0.4.0"
7487-
mitt "^1.1.2"
7488-
mkdirp "^0.5.1"
7489-
moment "^2.21.0"
7490-
name-all-modules-plugin "^1.0.1"
7491-
normalize-path "^2.1.1"
7492-
null-loader "^0.1.1"
7493-
opentracing "^0.14.3"
7494-
optimize-css-assets-webpack-plugin "^5.0.1"
7495-
parseurl "^1.3.2"
7496-
physical-cpu-count "^2.0.0"
7497-
pnp-webpack-plugin "^1.4.1"
7498-
postcss-flexbugs-fixes "^3.0.0"
7499-
postcss-loader "^2.1.3"
7500-
prop-types "^15.6.1"
7501-
raw-loader "^0.5.1"
7502-
react-dev-utils "^4.2.1"
7503-
react-error-overlay "^3.0.0"
7504-
react-hot-loader "^4.6.2"
7505-
redux "^4.0.0"
7506-
request "^2.85.0"
7507-
semver "^5.6.0"
7508-
shallow-compare "^1.2.2"
7509-
sift "^5.1.0"
7510-
signal-exit "^3.0.2"
7511-
slash "^1.0.0"
7512-
socket.io "^2.0.3"
7513-
stack-trace "^0.0.10"
7514-
string-similarity "^1.2.0"
7515-
style-loader "^0.21.0"
7516-
terser-webpack-plugin "^1.2.2"
7517-
"true-case-path" "^1.0.3"
7518-
type-of "^2.0.1"
7519-
url-loader "^1.0.1"
7520-
util.promisify "^1.0.0"
7521-
uuid "^3.1.0"
7522-
v8-compile-cache "^1.1.0"
7523-
webpack "~4.28.4"
7524-
webpack-dev-middleware "^3.0.1"
7525-
webpack-dev-server "^3.1.14"
7526-
webpack-hot-middleware "^2.21.0"
7527-
webpack-merge "^4.1.0"
7528-
webpack-stats-plugin "^0.1.5"
7529-
xstate "^4.3.2"
7530-
yaml-loader "^0.5.0"
7531-
75327345
gatsby@^2.3.21, gatsby@^2.3.6:
75337346
version "2.3.21"
75347347
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-2.3.21.tgz#0fa2f742a00e1dcb690d8513a20ae41015dbf94c"
@@ -7975,14 +7788,6 @@ grapheme-breaker@^0.3.2:
79757788
brfs "^1.2.0"
79767789
unicode-trie "^0.3.1"
79777790

7978-
graphql-compose@6.0.3:
7979-
version "6.0.3"
7980-
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-6.0.3.tgz#fa5668a30694abef4166703aa03af07a741039a8"
7981-
integrity sha512-QpywEtNvlEQS0a5VIseMA/tk67QmEN9NNUx1B1tzGR/p7MePyus9wvci2cIP/mwdDrvLRRbwpmidSKQXFD3SEA==
7982-
dependencies:
7983-
graphql-type-json "^0.2.1"
7984-
object-path "^0.11.4"
7985-
79867791
graphql-compose@^6.0.3:
79877792
version "6.2.0"
79887793
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-6.2.0.tgz#cb385c82baa64a5870cde5381e2c3498f8dc1087"
@@ -8047,7 +7852,7 @@ graphql-tools@^3.0.4:
80477852
iterall "^1.1.3"
80487853
uuid "^3.1.0"
80497854

8050-
graphql-type-json@^0.2.1, graphql-type-json@^0.2.4:
7855+
graphql-type-json@^0.2.4:
80517856
version "0.2.4"
80527857
resolved "https://registry.yarnpkg.com/graphql-type-json/-/graphql-type-json-0.2.4.tgz#545af27903e40c061edd30840a272ea0a49992f9"
80537858
integrity sha512-/tq02ayMQjrG4oDFDRLLrPk0KvJXue0nVXoItBe7uAdbNXjQUu+HYCBdAmPLQoseVzUKKMzrhq2P/sfI76ON6w==
@@ -8549,7 +8354,7 @@ http-errors@1.6.3, http-errors@~1.6.2, http-errors@~1.6.3:
85498354
setprototypeof "1.1.0"
85508355
statuses ">= 1.4.0 < 2"
85518356

8552-
http-errors@^1.3.0, http-errors@^1.7.1:
8357+
http-errors@^1.3.0:
85538358
version "1.7.2"
85548359
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f"
85558360
integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==
@@ -9200,13 +9005,6 @@ is-installed-globally@^0.1.0:
92009005
global-dirs "^0.1.0"
92019006
is-path-inside "^1.0.0"
92029007

9203-
is-invalid-path@^0.1.0:
9204-
version "0.1.0"
9205-
resolved "https://registry.yarnpkg.com/is-invalid-path/-/is-invalid-path-0.1.0.tgz#307a855b3cf1a938b44ea70d2c61106053714f34"
9206-
integrity sha1-MHqFWzzxqTi0TqcNLGEQYFNxTzQ=
9207-
dependencies:
9208-
is-glob "^2.0.0"
9209-
92109008
is-lower-case@^1.1.0:
92119009
version "1.1.3"
92129010
resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-1.1.3.tgz#7e147be4768dc466db3bfb21cc60b31e6ad69393"
@@ -9438,13 +9236,6 @@ is-utf8@^0.2.0:
94389236
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
94399237
integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=
94409238

9441-
is-valid-path@^0.1.1:
9442-
version "0.1.1"
9443-
resolved "https://registry.yarnpkg.com/is-valid-path/-/is-valid-path-0.1.1.tgz#110f9ff74c37f663e1ec7915eb451f2db93ac9df"
9444-
integrity sha1-EQ+f90w39mPh7HkV60UfLbk6yd8=
9445-
dependencies:
9446-
is-invalid-path "^0.1.0"
9447-
94489239
is-whitespace-character@^1.0.0:
94499240
version "1.0.2"
94509241
resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.2.tgz#ede53b4c6f6fb3874533751ec9280d01928d03ed"
@@ -13899,7 +13690,7 @@ range-parser@^1.0.3, range-parser@~1.2.0:
1389913690
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"
1390013691
integrity sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=
1390113692

13902-
raw-body@2.3.3, raw-body@^2.3.2, raw-body@^2.3.3:
13693+
raw-body@2.3.3, raw-body@^2.3.2:
1390313694
version "2.3.3"
1390413695
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.3.tgz#1b324ece6b5706e153855bc1148c65bb7f6ea0c3"
1390513696
integrity sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==
@@ -14326,6 +14117,11 @@ regex-cache@^0.4.2:
1432614117
dependencies:
1432714118
is-equal-shallow "^0.1.3"
1432814119

14120+
regex-escape@^3.4.8:
14121+
version "3.4.9"
14122+
resolved "https://registry.yarnpkg.com/regex-escape/-/regex-escape-3.4.9.tgz#407b413562e2373d56994ff213e693658ea4f8f7"
14123+
integrity sha512-Cv9rjwyQwVhn3L097ysanWsEElurmxDj6Cc4Ut23z7e6hzRbrNvF3Le7yAciMfuzyb0sZwSr0ZHunMNCIoy2/g==
14124+
1432914125
regex-not@^1.0.0, regex-not@^1.0.2:
1433014126
version "1.0.2"
1433114127
resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"

0 commit comments

Comments
 (0)