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 223147638142..637e504e84e0 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" } }