Hi,
In prior version of ionic 2, I was able to use require (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/requirejs/require.d.ts) as the tsconfig.json had, module: “commonjs”
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
...
}
but with the upgrades to latest version, it has changed to, "module": "es2015"
and now i cannot use require.
new tsconfig.json,
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"target": "es5"
},
"exclude": [
"node_modules"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
i need to use some thirdparty library and in order for that to use i need require.
Pls help
thanks.