@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.
Files changed (2) hide show
  1. package/index.js +4 -6
  2. 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 theme's node_modules,
76
- // not the consumer's (which may not have it installed).
77
- '@mdx-js/react': path.resolve(
78
- __dirname,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/docusaurus-theme-govuk",
3
- "version": "0.0.1-alpha",
3
+ "version": "0.0.2-alpha",
4
4
  "description": "A Docusaurus theme implementing the GOV.UK Design System for consistent, accessible documentation sites",
5
5
  "main": "index.js",
6
6
  "license": "MIT",