[Compile Error] Unexpected token (4:20367) in /Users/magicspon/websites/mudstone/node_modules/smooth-scrollbar/dist/smooth-scrollbar.js
As the code is minified so I can't really see where it's failing. I'm not sure if this is an issue with rollup babel.
plugins: [
resolve({
jsnext: true,
main: true,
browser: true
}),
commonjs({
include: 'node_modules/**'
}),
eslint({
exclude: $js.lint.ignore
}),
babel({
exclude: 'node_modules/**',
presets: [
'stage-0',
['es2015', { 'modules': false }]
],
plugins: [
'external-helpers',
'syntax-object-rest-spread',
'transform-es2015-parameters',
'transform-es2015-destructuring',
'transform-object-rest-spread'
],
babelrc: false,
runtimeHelpers: true
}),
replace({
ENV: JSON.stringify(process.env.NODE_ENV || 'development')
}),
(process.env.NODE_ENV === 'production' && uglify())
]