Currently I am using webpack config from angular cli and am facing the same issue of .map parser. Any work around for issue of parsing maps or addon loader? ES5 code works fine, its an issue with ES6 systemjs
WARNING in ./node_modules/xterm/lib/addons/search/search.js.map
Module parse failed: /home/jack/Projects/C290/website/node_modules/source-map-loader/index.js
Unable to hack into the webconfig. Removing .map files did not help
Update:
import { Terminal } from 'xterm';
@Component({...})
export class AppComponent{
xterm;
constructor(){
// Following line or not - it breaks with search.js.map
//Terminal.loadAddon('search');
// The following code when run breaks with the error
this.xterm = new Terminal();
}
}
This is the actual problem but where do cli webpack config changes apply? https://github.com/sourcelair/xterm.js/issues/1018