@defra/docusaurus-theme-govuk 0.0.1-alpha → 0.0.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -72,12 +72,10 @@ module.exports = function themeGovuk(context, options) {
|
|
|
72
72
|
'react-router': resolveFromSite('react-router'),
|
|
73
73
|
'react-router-dom': resolveFromSite('react-router-dom'),
|
|
74
74
|
'react-router-config': resolveFromSite('react-router-config'),
|
|
75
|
-
// Ensure @mdx-js/react resolves from the
|
|
76
|
-
//
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
'node_modules/@mdx-js/react'
|
|
80
|
-
),
|
|
75
|
+
// Ensure @mdx-js/react resolves from the consumer's node_modules.
|
|
76
|
+
// When installed from npm the theme ships no node_modules of its own,
|
|
77
|
+
// so we must point webpack at the copy already present in the site.
|
|
78
|
+
'@mdx-js/react': resolveFromSite('@mdx-js/react'),
|
|
81
79
|
},
|
|
82
80
|
},
|
|
83
81
|
plugins: [
|
package/package.json
CHANGED