File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/gatsby-plugin-theme-ui Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
const prismPresetDictionary = require ( `./utils/preset-dictionary` )
2
2
3
3
exports . onPreInit = ( { reporter } , options ) => {
4
+ let { preset, prismPreset } = options
5
+
4
6
if ( typeof preset === 'string' ) {
5
7
try {
6
8
options . preset = require ( preset )
@@ -29,8 +31,8 @@ exports.createSchemaCustomization = ({ actions }) => {
29
31
30
32
createTypes ( `
31
33
type ThemeUiConfig implements Node {
32
- prismPreset: JSON,
33
34
preset: JSON,
35
+ prismPreset: JSON,
34
36
}
35
37
` )
36
38
}
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ const useThemeUiConfig = () => {
4
4
const data = useStaticQuery ( graphql `
5
5
query {
6
6
themeUiConfig(id: { eq: "gatsby-plugin-theme-ui-config" }) {
7
- prismPreset
8
7
preset
8
+ prismPreset
9
9
}
10
10
}
11
11
` )
You can’t perform that action at this time.
0 commit comments