mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
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.
17 lines
467 B
JavaScript
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;
|