Skip to content

Commit 24d13cf

Browse files
authored
fix: Provide es5 build for esm (#1991)
1 parent 96551e1 commit 24d13cf

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 5.0.5
4+
5+
- [esm]: `module` in `package.json` now provides a `es5` build instead of `es2015`
6+
37
## 5.0.4
48

59
- [integrations] fix: Not requiring angular types

packages/browser/test/manual/npm-build.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ webpack(
1010
path: __dirname,
1111
filename: 'tmp.js',
1212
},
13-
resolve: {
14-
mainFields: ['main'],
15-
},
13+
// resolve: {
14+
// mainFields: ['main'],
15+
// },
1616
mode: 'development',
1717
},
1818
(err, stats) => {

packages/integrations/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
4444
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
4545
"build:bundle": "rollup --config",
46-
"clean": "rimraf dist coverage *.js *.js.map *.d.ts",
46+
"clean": "rimraf dist coverage esm build .rpt2_cache",
4747
"link:yarn": "yarn link",
4848
"lint": "run-s lint:prettier lint:tslint",
4949
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",

tsconfig.esm.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"target": "es6",
4+
"target": "es5",
55
"module": "es6"
66
}
77
}

0 commit comments

Comments
 (0)