Alan Agius 75fddc9b13 test(@angular-devkit/build-angular): workaround for rxjs 6 directory imports
rxjs 6 requires directory imports which are not support in ES modules. Disabling `fullySpecified` allows Webpack to ignore cases such as this until the package can be updated to use package exports.
2021-10-05 11:38:20 -04:00

19 lines
563 B
JavaScript

const path = require('path');
module.exports = {
mode: 'development',
entry: path.resolve(__dirname, './src/main.js'),
module: {
rules: [
// rxjs 6 requires directory imports which are not support in ES modules.
// Disabling `fullySpecified` allows Webpack to ignore this but this is
// not ideal because it currently disables ESM behavior import for all JS files.
{ test: /\.[m]?js$/, resolve: { fullySpecified: false } },
],
},
output: {
path: path.resolve(__dirname, './dist'),
filename: 'bundle.js',
},
};