-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile to ES5 pls #11
Comments
Hello @shermanlai can you give us more details about your issue, such as package.json, .babelrc and how you're importing SlicingDice package on your code? I did a test from here and I was able to use slicerjs package with es2015 preset on babel. I'll put here my configurations and the code I used to test. package.json {
"name": "my-project",
"version": "1.0.0",
"scripts": {
"build": "babel src -d lib"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"slicerjs": "^1.0.3"
}
} .babelrc {
"presets": ["es2015"]
} src/main.js var SlicingDice = require("slicerjs");
const client = new SlicingDice({
masterKey: 'YOUR_MASTER_API_KEY'
});
client.getProjects().then((resp) => {
console.log(resp);
}, (err) => {
console.error(err);
}); Thanks for your feedback and I'm waiting your response about this issue, have a good day. |
We are using Node 4 and we cannot upgrade anytime soon. What version of Node are you using? |
Hi @shermanlai, thanks for your answer. I was using node v7.x.x. I see now what's your problem, our client was not built for older versions of node, but we're working now to support node 4, as soon as we have this working I'll let you know. Thank you, and if you have any other questions please let me know. |
Could we compile the sources down to ES5 or at least put the engine version in package.json?
The text was updated successfully, but these errors were encountered: