From 2be5ccab875d11a938d6ea1154c680e0ea2c7187 Mon Sep 17 00:00:00 2001 From: Marcin Dziewulski Date: Thu, 29 Sep 2022 22:47:10 +0200 Subject: [PATCH] Update docs config --- docs/babel.config.js | 12 +----------- docs/docusaurus.config.js | 1 + docs/plugins/react-native-web-plugin.js | 15 --------------- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/docs/babel.config.js b/docs/babel.config.js index af31caf6..92569c77 100644 --- a/docs/babel.config.js +++ b/docs/babel.config.js @@ -1,14 +1,4 @@ module.exports = { presets: [require.resolve('@docusaurus/core/lib/babel/preset')], - plugins: [ - ['react-native-web'], - [ - 'module-resolver', - { - alias: { - react: './node_modules/react', - }, - }, - ], - ], + plugins: [], } diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 96fd864b..197b0aaf 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -115,6 +115,7 @@ module.exports = { sidebarPath: require.resolve('./sidebars.api.js'), }, ], + require.resolve('./plugins/react-native-web-plugin.js'), ], presets: [ [ diff --git a/docs/plugins/react-native-web-plugin.js b/docs/plugins/react-native-web-plugin.js index a7ab7aba..cd25397c 100644 --- a/docs/plugins/react-native-web-plugin.js +++ b/docs/plugins/react-native-web-plugin.js @@ -4,21 +4,6 @@ module.exports = function (context, options) { return { name: 'react-native-web-plugin', configureWebpack(config, isServer, utils) { - config.module.rules.push({ - test: /\.m?[t|j]sx?$/, - exclude: { - and: [ - /node_modules/, - { - not: [/@mobily\/stacks/], - }, - ], - }, - use: { - loader: 'babel-loader', - }, - }) - return { resolve: { alias: {