Skip to content
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

Replace webpack with Rollup #29

Merged
merged 1 commit into from
Aug 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/index.esm.js
jest_*

# Logs
Expand Down
2 changes: 0 additions & 2 deletions files/rambdaWebExport.js

This file was deleted.

36 changes: 36 additions & 0 deletions files/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
import pkg from '../package.json';

export default {
entry: './rambda.js',
plugins: [
commonjs(),
babel({
presets: [['es2015', {modules: false}]],
plugins: ['external-helpers'],
}),
],
targets: [
{
dest: pkg.main,
format: 'cjs',
exports: 'named',
interop: false,
sourceMap: false,
Copy link
Contributor Author

@vlad-zhukov vlad-zhukov Aug 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disabled source maps since they are not generated currently, but I believe they should be enabled because they provide a better development experience.

},
{
dest: pkg.module,
format: 'es',
sourceMap: false,
},
{
dest: pkg.browser,
format: 'umd',
moduleName: 'R',
exports: 'named',
interop: false,
sourceMap: false,
},
],
};
7 changes: 0 additions & 7 deletions files/webpack.config.js

This file was deleted.

18 changes: 0 additions & 18 deletions files/webpack.config.node.js

This file was deleted.

Loading