2022-09-30 15:17:02 +00:00
|
|
|
/*
|
|
|
|
This file extends the webpack.dev.js config to add babel istanbul coverage.
|
|
|
|
OpenMCT Continuous Integration servers use this configuration to add code coverage
|
|
|
|
information to pull requests.
|
|
|
|
*/
|
2022-03-22 23:04:23 +00:00
|
|
|
|
2024-01-02 15:24:22 +00:00
|
|
|
import config from './webpack.dev.js';
|
2022-03-22 23:04:23 +00:00
|
|
|
|
2024-03-13 00:02:41 +00:00
|
|
|
config.devtool = 'source-map';
|
2022-09-30 15:17:02 +00:00
|
|
|
config.devServer.hot = false;
|
2022-03-22 23:04:23 +00:00
|
|
|
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /(Spec\.js$)|(node_modules)/,
|
|
|
|
use: {
|
2023-01-12 19:46:35 +00:00
|
|
|
loader: 'babel-loader',
|
2022-03-22 23:04:23 +00:00
|
|
|
options: {
|
2022-07-28 18:23:41 +00:00
|
|
|
retainLines: true,
|
2022-06-30 18:50:47 +00:00
|
|
|
// eslint-disable-next-line no-undef
|
2023-01-12 19:46:35 +00:00
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
'babel-plugin-istanbul',
|
|
|
|
{
|
|
|
|
extension: ['.js', '.vue']
|
|
|
|
}
|
|
|
|
]
|
2023-05-18 21:54:46 +00:00
|
|
|
]
|
2022-03-22 23:04:23 +00:00
|
|
|
}
|
2023-05-18 21:54:46 +00:00
|
|
|
}
|
2022-03-22 23:04:23 +00:00
|
|
|
});
|
|
|
|
|
2024-01-02 15:24:22 +00:00
|
|
|
export default config;
|