mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
feat(v2): Allow configuring babel via babel.config.js (#2903)
* feat(v2): Allow configuring babel via docusaurus.config.js * Use api.caller feature from babel to avoid expose isServer to users * Remove unused optional config key * Make babel loader resolve and require config file
This commit is contained in:
parent
68a1bb1ebf
commit
729b3cae9b
9 changed files with 154 additions and 69 deletions
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue