I’m trying to import a json file. Until beta.11 it works fine:
var config = require(’./config.json’);
But now on RC.0 it compiles okay, but on the browser says:
Uncaught ReferenceError: require is not defined
What has changed?
I’m having a similar problem, may be related, with other imports like
import * as _ from ‘underscore’;
import _ from ‘underscore’;
What has changed about compilation?