-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade dependencies #16
Conversation
@@ -26,6 +26,7 @@ const nodeResolve = require('rollup-plugin-node-resolve'); | |||
const organiser = require('gulp-organiser'); | |||
const { curry } = require('lodash/fp'); | |||
const rename = require("gulp-rename"); | |||
const extensions = require("./extensions"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
return { | ||
name: "extensions", | ||
|
||
resolveId(importee, importer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'concise methods' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
module.exports = function extensions({ extensions }) { | ||
if (!extensions || !extensions.length) { | ||
throw new Error( | ||
`Must specify { extensions: [..] } as non-empty array!` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'template literal syntax' is only available in ES6 (use 'esversion: 6').
return null; | ||
} | ||
|
||
module.exports = function extensions({ extensions }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'destructuring binding' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
||
// In case `file` is a folder name, we check if there is an | ||
// index file in the folder | ||
const indexPath = `${file}/index${ext}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').
const files = fs.readdirSync(dirname(file)); | ||
|
||
if (~files.indexOf(name) && isFile(file)) return file; | ||
for (const ext of extensions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'for of' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
function addExtensionIfNecessary(file, extensions) { | ||
try { | ||
const name = basename(file); | ||
const files = fs.readdirSync(dirname(file)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
||
function addExtensionIfNecessary(file, extensions) { | ||
try { | ||
const name = basename(file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
*/ | ||
|
||
const { basename, dirname, isAbsolute, resolve } = require("path"); | ||
const fs = require("fs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Most of this file's code was taken from here: https://github.com/rollup/rollup/issues/1052 | ||
*/ | ||
|
||
const { basename, dirname, isAbsolute, resolve } = require("path"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'destructuring binding' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
No description provided.