fix(angular): emit es5 code

This commit is contained in:
Manu Mtz.-Almeida
2018-04-11 21:13:44 +02:00
parent a203534b27
commit 02c1e83096
4 changed files with 52 additions and 46 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,9 @@ const path = require('path');
// use ionic/core's stencil config // use ionic/core's stencil config
exports.config = require('../core/stencil.config.js').config; exports.config = require('../core/stencil.config.js').config;
// user ionic core's tsconfig
exports.config.tsconfig ='../core/tsconfig.json';
// update where to find the original ionic/core src // update where to find the original ionic/core src
exports.config.srcDir = '../core/src'; exports.config.srcDir = '../core/src';
exports.config.globalScript = '../core/src/global/ionic-global.ts'; exports.config.globalScript = '../core/src/global/ionic-global.ts';

View File

@ -11,7 +11,7 @@
"jsxFactory": "h", "jsxFactory": "h",
"lib": [ "lib": [
"dom", "dom",
"es2017" "es5"
], ],
"module": "es2015", "module": "es2015",
"moduleResolution": "node", "moduleResolution": "node",
@ -24,7 +24,7 @@
"removeComments": false, "removeComments": false,
"rootDir": "src", "rootDir": "src",
"strictPropertyInitialization": false, "strictPropertyInitialization": false,
"target": "es2017" "target": "es5"
}, },
"files": [ "files": [
"src/index.ts" "src/index.ts"

View File

@ -1752,7 +1752,7 @@ declare global {
/** /**
* Where to align the fab vertically in the viewport. Possible values are: `"top"`, `"center"`, `"bottom"`. * Where to align the fab vertically in the viewport. Possible values are: `"top"`, `"center"`, `"bottom"`.
*/ */
'vertical': 'top' | 'center' | 'bottom'; 'vertical': 'top' | 'bottom' | 'center';
} }
var HTMLIonFabElement: { var HTMLIonFabElement: {
prototype: HTMLIonFabElement; prototype: HTMLIonFabElement;
@ -1783,7 +1783,7 @@ declare global {
/** /**
* Where to align the fab vertically in the viewport. Possible values are: `"top"`, `"center"`, `"bottom"`. * Where to align the fab vertically in the viewport. Possible values are: `"top"`, `"center"`, `"bottom"`.
*/ */
'vertical'?: 'top' | 'center' | 'bottom'; 'vertical'?: 'top' | 'bottom' | 'center';
} }
} }
} }