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:
Sam Zhou 2020-06-11 23:03:00 -04:00 committed by GitHub
parent 68a1bb1ebf
commit 729b3cae9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 154 additions and 69 deletions

View file

@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};