Skip to content

Commit f9cd84c

Browse files
committed
Fix broken reactstrap by aliasing in example app
1 parent 50c815b commit f9cd84c

File tree

4 files changed

+18670
-11191
lines changed

4 files changed

+18670
-11191
lines changed

example/craco.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const {CracoAliasPlugin} = require('react-app-alias');
2+
3+
const options = {};
4+
5+
module.exports = {
6+
eslint: null,
7+
plugins: [
8+
{
9+
plugin: CracoAliasPlugin,
10+
options: {},
11+
},
12+
]
13+
};

example/jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"reactstrap": ["node_modules/reactstrap/dist/reactstrap.modern.js"]
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)