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({
|
2023-05-18 21:54:46 +00:00
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /(Spec\.js$)|(node_modules)/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
retainLines: true,
|
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
'babel-plugin-istanbul',
|
|
|
|
{
|
|
|
|
extension: ['.js', '.vue']
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
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;
|