mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 15:29:32 +02:00
fix(v2): Fix babel-loader not transpiling docusaurus package (#1661)
This commit is contained in:
parent
ea19b35e90
commit
e3c0803c0a
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
# Docusaurus 2 Changelog
|
||||
|
||||
## 2.0.0-alpha.21
|
||||
- Fix babel-loader not transpiling docusaurus package
|
||||
|
||||
## 2.0.0-alpha.20
|
||||
|
||||
- Added Google analytics and Google gtag plugins.
|
||||
|
|
|
@ -125,8 +125,12 @@ export function createBaseConfig(
|
|||
rules: [
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
include: [siteDir, /docusaurus/],
|
||||
exclude: /node_modules/,
|
||||
exclude: modulePath => {
|
||||
// Don't transpile node_modules except any docusaurus package
|
||||
return (
|
||||
/node_modules/.test(modulePath) && !/docusaurus/.test(modulePath)
|
||||
);
|
||||
},
|
||||
use: [
|
||||
cacheLoader && getCacheLoader(isServer),
|
||||
getBabelLoader(isServer),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue