mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
Upgrade to babel 7 for v1 (#995)
* Upgrade babel 7 Use custom transform for jest to handle docs test since there is path change in there * change all version of babel dependency * - add silent to yarn build - add babel/types to expose method used in translate-plugin
This commit is contained in:
parent
c24e9bfb7f
commit
0f8535293e
11 changed files with 2465 additions and 1420 deletions
|
@ -7,16 +7,16 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
require('babel-polyfill');
|
||||
require('babel-register')({
|
||||
require('@babel/polyfill');
|
||||
require('@babel/register')({
|
||||
babelrc: false,
|
||||
only: [__dirname, `${process.cwd()}/core`],
|
||||
plugins: [
|
||||
require('./server/translate-plugin.js'),
|
||||
'transform-class-properties',
|
||||
'transform-object-rest-spread',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-object-rest-spread',
|
||||
],
|
||||
presets: ['react', 'env'],
|
||||
presets: ['@babel/react', '@babel/env'],
|
||||
});
|
||||
|
||||
// initial check that required files are present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue