Skip to content

Commit

Permalink
Update main key in package json to reference es2017 bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragpat committed Apr 16, 2020
1 parent f765e14 commit 29126fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/broccoli/write-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const funnel = require('broccoli-funnel');
const UnwatchedDir = require('broccoli-source').UnwatchedDir;

const PACKAGE_JSON_FIELDS = {
main: 'dist/commonjs/es5/index.js',
main: 'dist/commonjs/es2017/index.js',
'jsnext:main': 'dist/modules/es5/index.js',
module: 'dist/modules/es2017/index.js',
typings: 'dist/types/index.d.ts',
Expand Down
2 changes: 1 addition & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = function() {
['types'],
];
} else {
matrix = [['amd', 'es5'], ['commonjs', 'es5'], ['modules', 'es2017'], ['types']];
matrix = [['amd', 'es5'], ['commonjs', 'es2017'], ['modules', 'es2017'], ['types']];
}

// Third, build our module/ES combinations for each package.
Expand Down

0 comments on commit 29126fb

Please sign in to comment.