export es5 file to es6 code example
Example: js import export es5
// code.js
module.exports = { something: 'value' };
// main.js
const code = require('./code');
// or
const { something } = require('./code')
// code.js
module.exports = { something: 'value' };
// main.js
const code = require('./code');
// or
const { something } = require('./code')