Skip to content

Commit 24528b6

Browse files
authored
Merge pull request #67 from TongChia/patch-1
Compatible linked modules
2 parents ddd63a2 + a56027c commit 24528b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf/webpack/Base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/**
44
* Webpack configuration base class
55
*/
6+
const fs = require('fs');
67
const path = require('path');
78
const npmBase = path.join(__dirname, '../../node_modules');
89

@@ -17,7 +18,7 @@ class WebpackBaseConfig {
1718
* @return {Array} List of included packages
1819
*/
1920
get includedPackages() {
20-
return [].map((pkg) => path.join(npmBase, pkg));
21+
return [].map((pkg) => fs.realpathSync(path.join(npmBase, pkg)));
2122
}
2223

2324
/**

0 commit comments

Comments
 (0)