Skip to content

Commit

Permalink
fix: Provide es5 build for esm (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT authored Apr 3, 2019
1 parent 96551e1 commit 24d13cf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/browser/test/manual/npm-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ webpack(
path: __dirname,
filename: 'tmp.js',
},
resolve: {
mainFields: ['main'],
},
// resolve: {
// mainFields: ['main'],
// },
mode: 'development',
},
(err, stats) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es6",
"target": "es5",
"module": "es6"
}
}

0 comments on commit 24d13cf

Please sign in to comment.