xiaofuzi / rollup-plugin-less

a less rollup plugin
22 stars 23 forks source link

Cannot find module 'babel-runtime/regenerator' #13

Closed PeakTai closed 6 years ago

PeakTai commented 7 years ago

And also can't install babel-runtime/regenerator,Permission denied (publickey).

import progress from 'rollup-plugin-progress'
import buble from 'rollup-plugin-buble'
import html from 'rollup-plugin-html'
import uglify from 'rollup-plugin-uglify'
import less from 'rollup-plugin-less'

export default {
    entry: 'src/index.js',
    dest: 'dist/index.js',
    format: 'iife',
    sourceMap: true,
    plugins: [
        progress({
            clearLine: false
        }),
        less({
            insert: true,
            include: ['**/*.less']
        }),
        html({
            include: '**/*.html',
            htmlMinifierOptions: {
                collapseWhitespace: true,
                collapseBooleanAttributes: true,
                conservativeCollapse: true
            }
        }),
        buble({
            include: '**/*.js'
        }),
        uglify()
    ]
}

Rollup version 0.40.2.

xiaofuzi commented 7 years ago

you can try rollup-plugin-babel instead rollup-plugin-bubel.

ErikCohenDev commented 7 years ago

same issue not using babel in my rollup.config

rennaiqian commented 7 years ago

same issue……

ywzhaiqi commented 7 years ago

same issue. And I don't need babel.