2022-09-30 15:17:02 +00:00
|
|
|
/*
|
2024-03-28 21:49:00 +00:00
|
|
|
This file extends the webpack.dev.mjs config to add babel istanbul coverage.
|
2022-09-30 15:17:02 +00:00
|
|
|
OpenMCT Continuous Integration servers use this configuration to add code coverage
|
|
|
|
information to pull requests.
|
|
|
|
*/
|
2022-03-22 23:04:23 +00:00
|
|
|
|
2024-03-28 21:49:00 +00:00
|
|
|
import config from './webpack.dev.mjs';
|
2022-03-22 23:04:23 +00:00
|
|
|
|
2024-05-14 21:51:33 +00:00
|
|
|
config.devtool = 'inline-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,
|
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;
|