Skip to content

Commit 2be5cca

Browse files
committed
Update docs config
1 parent 23d491c commit 2be5cca

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

docs/babel.config.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
module.exports = {
22
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3-
plugins: [
4-
['react-native-web'],
5-
[
6-
'module-resolver',
7-
{
8-
alias: {
9-
react: './node_modules/react',
10-
},
11-
},
12-
],
13-
],
3+
plugins: [],
144
}

docs/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module.exports = {
115115
sidebarPath: require.resolve('./sidebars.api.js'),
116116
},
117117
],
118+
require.resolve('./plugins/react-native-web-plugin.js'),
118119
],
119120
presets: [
120121
[

docs/plugins/react-native-web-plugin.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,6 @@ module.exports = function (context, options) {
44
return {
55
name: 'react-native-web-plugin',
66
configureWebpack(config, isServer, utils) {
7-
config.module.rules.push({
8-
test: /\.m?[t|j]sx?$/,
9-
exclude: {
10-
and: [
11-
/node_modules/,
12-
{
13-
not: [/@mobily\/stacks/],
14-
},
15-
],
16-
},
17-
use: {
18-
loader: 'babel-loader',
19-
},
20-
})
21-
227
return {
238
resolve: {
249
alias: {

0 commit comments

Comments
 (0)