documentation/__tests__/fixture/es6-import.input.js
Victor 49c0f72793 feat: Babel 7 support
BREAKING CHANGE: This moves documentation.js to Babel 7. From now on,
documentation.js will only support Babel 7: please stick to older
releases if you need to support Babel 6. Additionally, this work
temporarily disables support for following dynamic imports.
2018-09-20 23:21:14 -07:00

17 lines
467 B
JavaScript

import hasEx6 from './es6-ext';
import multiply from './simple.input.js';
import * as foo from 'some-other-module';
// Disable dynamic imports for now until
// https://github.com/thgreasi/babel-plugin-system-import-transformer
// can be updated to support babel 7.
// import('./simple.input.js').then(() => {});
/**
* This function returns the number one.
* @returns {Number} numberone
*/
var multiplyTwice = a => a * multiply(a);
export default multiplyTwice;