From 43f0f44f496b975ac9557db2434f1c94c629837c Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Wed, 3 Apr 2019 12:34:25 +0200 Subject: [PATCH] fix: Provide es5 build for esm --- CHANGELOG.md | 4 ++++ packages/browser/test/manual/npm-build.js | 6 +++--- packages/integrations/package.json | 2 +- tsconfig.esm.json | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7a826cacdbd..fa19f72b016a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 5.0.5 + +- [esm]: `module` in `package.json` now provides a `es5` build instead of `es2015` + ## 5.0.4 - [integrations] fix: Not requiring angular types diff --git a/packages/browser/test/manual/npm-build.js b/packages/browser/test/manual/npm-build.js index bd325feba1c9..95cc794e4861 100644 --- a/packages/browser/test/manual/npm-build.js +++ b/packages/browser/test/manual/npm-build.js @@ -10,9 +10,9 @@ webpack( path: __dirname, filename: 'tmp.js', }, - resolve: { - mainFields: ['main'], - }, + // resolve: { + // mainFields: ['main'], + // }, mode: 'development', }, (err, stats) => { diff --git a/packages/integrations/package.json b/packages/integrations/package.json index f50807e0d8bd..56999d21f6a0 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -43,7 +43,7 @@ "build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput", "build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput", "build:bundle": "rollup --config", - "clean": "rimraf dist coverage *.js *.js.map *.d.ts", + "clean": "rimraf dist coverage esm build .rpt2_cache", "link:yarn": "yarn link", "lint": "run-s lint:prettier lint:tslint", "lint:prettier": "prettier-check \"{src,test}/**/*.ts\"", diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 392692512630..2d7d146b93ae 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "target": "es6", + "target": "es5", "module": "es6" } }