diff --git a/CHANGELOG.md b/CHANGELOG.md index 60813c9..515b7be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.1.3 (May 9, 2018) +- Ensure we are shipping ES5 everywhere. + ## v0.1.2 (April 3, 2018) - Update npm package to ship with three builds: `UMD`, `CommonJS` and `ES2015` diff --git a/package.json b/package.json index 68b96a6..22b2d10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.2", + "version": "0.1.3", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "license": "SEE LICENSE IN LICENSE", "main": "dist/commercecloud-ocapi-client.cjs.js", @@ -20,7 +20,7 @@ "lint:fix": "npm run lint:js -- --fix", "test": "NODE_ENV=test mocha --require babel-core/register $(find test/api -name '*.spec.js')", "prebuild": "npm run lint", - "build": "rollup -c", + "build": "NODE_ENV=production rollup -c", "prepack": "npm run build" }, "dependencies": { diff --git a/rollup.config.js b/rollup.config.js index b4e1d14..282a0fc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -22,8 +22,7 @@ export default [{ browser: true, }), babel({ - exclude: ['node_modules/**'], - externalHelpers: true + exclude: ['node_modules/**'] }) ] }, @@ -37,4 +36,9 @@ export default [{ format: 'es' }], external: ['superagent', 'querystring'], + plugins: [ + babel({ + exclude: ['node_modules/**'] + }) + ] }]