This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build umd with rollup * Tidy up * Fix scripts lint * Fix deps
- Loading branch information
Showing
6 changed files
with
111 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
const nodeResolve = require('rollup-plugin-node-resolve') | ||
const babel = require('rollup-plugin-babel') | ||
const replace = require('rollup-plugin-replace') | ||
const commonjs = require('rollup-plugin-commonjs') | ||
|
||
module.exports = { | ||
external: [ | ||
'react' | ||
], | ||
globals: { | ||
react: 'React' | ||
}, | ||
// Set library in release script | ||
// moduleName: 'Recompose', | ||
format: 'umd', | ||
plugins: [ | ||
nodeResolve({ | ||
jsnext: true | ||
}), | ||
babel({ | ||
exclude: 'node_modules/**', | ||
babelrc: false, | ||
plugins: [ | ||
'babel-plugin-transform-function-bind', | ||
'babel-plugin-transform-class-constructor-call', | ||
['babel-plugin-transform-class-properties', { loose: true }], | ||
'babel-plugin-transform-export-extensions', | ||
'babel-plugin-syntax-trailing-function-commas', | ||
'babel-plugin-transform-object-rest-spread', | ||
'babel-plugin-transform-async-to-generator', | ||
|
||
'babel-plugin-transform-react-jsx', | ||
'babel-plugin-syntax-jsx', | ||
'babel-plugin-transform-react-display-name', | ||
|
||
['babel-plugin-transform-es2015-template-literals', { loose: true }], | ||
'babel-plugin-transform-es2015-literals', | ||
'babel-plugin-transform-es2015-function-name', | ||
'babel-plugin-transform-es2015-arrow-functions', | ||
'babel-plugin-transform-es2015-block-scoped-functions', | ||
['babel-plugin-transform-es2015-classes', { loose: true }], | ||
'babel-plugin-transform-es2015-shorthand-properties', | ||
['babel-plugin-transform-es2015-computed-properties', { loose: true }], | ||
['babel-plugin-transform-es2015-spread', { loose: true }], | ||
'babel-plugin-transform-es2015-parameters', | ||
['babel-plugin-transform-es2015-destructuring', { loose: true }], | ||
'babel-plugin-transform-es2015-block-scoping', | ||
'babel-plugin-transform-regenerator', | ||
'babel-plugin-external-helpers' | ||
] | ||
}), | ||
commonjs(), | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify('production') | ||
}) | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.