generated from grafana/grafana-starter-panel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.config.js
28 lines (26 loc) · 880 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports.getWebpackConfig = (config, options) => ({
...config,
module: {
...config.module,
rules: [
...config.module.rules,
{
test: /\.mdx?$/,
use: [
{
loader: 'babel-loader',
options: {
presets: [['@babel/preset-env', { modules: false }]],
plugins: ['angularjs-annotate', '@babel/plugin-transform-react-jsx'],
sourceMaps: true,
},
},
{
loader: "@mdx-js/loader",
},
],
}
]
}
})
// Ref: https://github.com/grafana/grafana/blob/master/packages/grafana-toolkit/README.md