@timothygu/rollup-loader
Rollup does what it can, and let Webpack finish the job.
Last updated 3 years ago by timothygu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @timothygu/rollup-loader 
SYNC missed versions from official npm registry.

rollup-loader

[WIP] Coming soon.

Example

module: {
  loaders: [
    {
      test: /\.js$/,
      loaders: ['rollup'],
      exclude: [/node_modules/]
    }
  ],
},
rollup: {
  external(id) {
    const split = id.split('/')
    const {dependencies} = require('./package.json')
    return split[0] in dependencies ||
      split.slice(0, 2).join('/') in dependencies
  },
  plugins: [
    require('rollup-plugin-babel')({
      exclude: 'node_modules/**',
      preset: ['es2015-rollup']
    })
  ]
}
// or use babel-loader if you like
// loaders: ['rollup', 'babel']

License

MIT © EGOIST

Current Tags

  • 0.0.5                                ...           latest (3 years ago)

3 Versions

  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 4
Dependencies (3)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |