fix(v2): revert webpack.resolve.symlinks = false (#5164)

* WathcOptions should work even if Webpack does not resolve symlinks

* re-enable webpack resolve.symlinks = true

* Use symlinked folder as source
This commit is contained in:
Sébastien Lorber 2021-07-13 20:11:08 +02:00 committed by GitHub
parent f33cd079c2
commit d3764f77fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
const fs = require('fs');
const path = require('path');
const versions = require('./versions.json');
const math = require('remark-math');
@ -121,10 +122,11 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
{
// This plugin instance is used to test fancy edge cases
id: 'docs-tests',
// Using a symlinked folder as source, test against https://github.com/facebook/docusaurus/issues/3272
path: 'dogfooding/docs-tests-symlink',
routeBasePath: 'docs-tests',
sidebarPath: 'dogfooding/docs-tests-sidebars.js',
// Using a symlinked folder as source, test for use-case https://github.com/facebook/docusaurus/issues/3272
path: fs.realpathSync('dogfooding/docs-tests-symlink'),
},
],