Skip to content

Commit

Permalink
Update docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Sep 29, 2022
1 parent 23d491c commit 2be5cca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
12 changes: 1 addition & 11 deletions docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -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: [],
}
1 change: 1 addition & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.api.js'),
},
],
require.resolve('./plugins/react-native-web-plugin.js'),
],
presets: [
[
Expand Down
15 changes: 0 additions & 15 deletions docs/plugins/react-native-web-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 2be5cca

Please sign in to comment.