diff --git a/package.json b/package.json index 06359ba2..766ef370 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "rollup-plugin-typescript": "^0.8.1", "rollup-plugin-uglify": "^3.0.0", "sade": "^1.3.1", + "tslib": "^1.9.0", "typescript": "^2.6.2" }, "devDependencies": { diff --git a/src/index.js b/src/index.js index 821222ac..f9c82af1 100644 --- a/src/index.js +++ b/src/index.js @@ -212,7 +212,7 @@ function createConfig(options, entry, format, writeMeta) { inject: false, extract: !!writeMeta }), - useTypescript && typescript(), + useTypescript && typescript({ typescript: require('typescript') }), !useTypescript && flow({ all: true, pretty: true }), nodent({ exclude: 'node_modules/**', diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..92dfa69b --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "importHelpers": true + } +}