I am creating a node application which requires a local package es5_pkg (written in ES5).
es5_pkg is a separate project which i need to include in my node application and This is using babel transpiler.
I am getting error
import _ from 'lodash'; SyntaxError: Unexpected reserved word
Don't know what to do with. Not able to resolve this issue. Help me resolve this.
node application index.js
var npmPackage = require('es5_pkg'); // This package is in ES5
package.json
"dependencies": {
"es5_pkg": "file:../es5_pkg"
},