-
Notifications
You must be signed in to change notification settings - Fork 27
Description
I initially opened this issue against ember-cli and was informed that this addon is the best place to address this currently. For reference: ember-cli/ember-cli#6170
We are using Ember CLI along with Ember Browserify to manage a number of our client-side dependencies. In one of our new packages the author elected to write some modules using ES2015 features/syntax. The package is also used server-side in a Node 4.x environment and this works without issue.
I have a repro project here: https://github.com/sohara/halp-markdown
Basically I added a dependency that exposes a function that uses const which should be transpiled if using the ES2015 Babel preset. The const remains in the source if you inspect the build vendor.js file. Works fine in current Chrome. Here's source of the npm packages's entry file:
'use strict';
function parse(str) {
const newString = '<p>' + str + '</p>';
return newString;
}
module.exports = {
parse: parse
};This older issue: #60 was closed but I don't think it was ever really addressed.
The comment from @nathanhammond in the linked Ember CLI issue is informative and may provide insight as to how this issue might be addressed.
Output from ember version --verbose:
ember-cli: 2.7.0
http_parser: 2.5.2
node: 4.4.3
v8: 4.5.103.35
uv: 1.8.0
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2g
os: darwin x64