|
1 | 1 | const path = require('path'); |
2 | 2 |
|
3 | | -const sourcePath = path.join(__dirname, '../../react-bootstrap-table2'); |
4 | | -const paginationSourcePath = path.join(__dirname, '../../react-bootstrap-table2-paginator'); |
5 | | -const overlaySourcePath = path.join(__dirname, '../../react-bootstrap-table2-overlay'); |
6 | | -const filterSourcePath = path.join(__dirname, '../../react-bootstrap-table2-filter'); |
7 | | -const editorSourcePath = path.join(__dirname, '../../react-bootstrap-table2-editor'); |
| 3 | +const sourcePath = path.join(__dirname, '../../react-bootstrap-table2/index.js'); |
| 4 | +const paginationSourcePath = path.join(__dirname, '../../react-bootstrap-table2-paginator/index.js'); |
| 5 | +const overlaySourcePath = path.join(__dirname, '../../react-bootstrap-table2-overlay/index.js'); |
| 6 | +const filterSourcePath = path.join(__dirname, '../../react-bootstrap-table2-filter/index.js'); |
| 7 | +const editorSourcePath = path.join(__dirname, '../../react-bootstrap-table2-editor/index.js'); |
8 | 8 | const sourceStylePath = path.join(__dirname, '../../react-bootstrap-table2/style'); |
9 | 9 | const paginationStylePath = path.join(__dirname, '../../react-bootstrap-table2-paginator/style'); |
10 | 10 | const storyPath = path.join(__dirname, '../stories'); |
@@ -33,8 +33,7 @@ const loaders = [{ |
33 | 33 | }, { |
34 | 34 | test: /\.js?$/, |
35 | 35 | use: ['babel-loader'], |
36 | | - exclude: /node_modules/, |
37 | | - include: [sourcePath, paginationSourcePath, overlaySourcePath, filterSourcePath, editorSourcePath, storyPath] |
| 36 | + exclude: /node_modules/ |
38 | 37 | }, { |
39 | 38 | test: /\.css$/, |
40 | 39 | use: ['style-loader', 'css-loader'], |
|
0 commit comments