Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 3c2d6eb

Browse files
committed
fix(gatsby-theme-docz): fix faulty webpack resolution
#1102 by @aleksandervalle
1 parent bb0a111 commit 3c2d6eb

3 files changed

Lines changed: 0 additions & 31 deletions

File tree

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
const fs = require('fs-extra')
2-
const path = require('path')
31
const { Plugin, parseConfig } = require('docz-core')
42

5-
const nodeModules = path.resolve(__dirname, 'node_modules')
6-
const parentNodeModules = path.resolve(__dirname, '../../../node_modules')
7-
83
module.exports = async (params, opts) => {
94
const { stage, actions, getConfig } = params
10-
const hasParentNodeModules = fs.pathExistsSync(parentNodeModules)
115
const args = await parseConfig(opts)
126
const run = Plugin.runPluginsMethod(args.plugins)
137
const config = getConfig()
@@ -20,13 +14,5 @@ module.exports = async (params, opts) => {
2014
})
2115
}
2216

23-
if (hasParentNodeModules) {
24-
actions.setWebpackConfig({
25-
resolve: {
26-
modules: [nodeModules, parentNodeModules],
27-
},
28-
})
29-
}
30-
3117
run('onCreateWebpackConfig', params, stage === 'develop', args, config)
3218
}

examples/material-ui/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
"private": true,
44
"version": "2.0.0-rc.41",
55
"license": "MIT",
6-
"files": [
7-
"src/",
8-
"doczrc.js",
9-
"package.json"
10-
],
116
"scripts": {
127
"dev": "docz dev",
138
"build": "docz build",
@@ -17,11 +12,7 @@
1712
"dependencies": {
1813
"@material-ui/core": "^4.4.0",
1914
"docz": "next",
20-
"postinstall-postinstall": "^2.0.0",
2115
"react": "^16.8.6",
2216
"react-dom": "^16.8.6"
23-
},
24-
"devDependencies": {
25-
"patch-package": "^6.1.2"
2617
}
2718
}

examples/material-ui/patches/compass-vertical-rhythm+1.4.5.patch

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)