Я следую примеру, приведенному в Rxjs Subject :
import {Subject} from 'rxjs';
const subject = new Subject<number>();
// more code...
При запуске npx webpack я получаю следующую ошибку:
You may need an appropriate loader to handle this file type.
| import {Subject} from 'rxjs';
|
> const subject = new Subject<number>();
Мой конфиг веб-пакета просто скелетов:
const path = require('path');
module.exports = {
entry: './js/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
mode: 'development'
};