Question: I am trying to import ES6 library in my Node app. I tried to do it both ES5 and ES6 script. What I am trying to do is simply :

```
import 'gnosisjs/src';

```

what I get is :

```
gnosistest/node_modules/gnosisjs/src/index.js:1
(function (exports, require, module, __filename, __dirname) { import * as config from './config';
                                                          ^^^^^^
SyntaxError: Unexpected token import

```

I am running app via this command : 

```
node -r babel-register -r babel-polyfill test.js

```

importing other standard libraries seems to be working. 

Edit: Screenshots of the projects : 

[http://i.imgur.com/wdcdY9W.png](https://i.imgur.com/wdcdY9W.png)

and dependencies :

[http://i.imgur.com/zwewa8L.png](https://i.imgur.com/zwewa8L.png)

Answer: 
you can call finish(); after you start intent on B .
```
Intent intent = new Intent(this, C.class);
startActivity(intent);
finish();

```

If you call finish() after start C Activity, in B Activity. You can remove B Activity from stack. So if you press back in C, you will see A Activity.