forked from jaredpalmer/formik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e20a98b
commit ec95e08
Showing
9 changed files
with
1,836 additions
and
1,141 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 |
---|---|---|
@@ -1,22 +1,51 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import sourceMaps from 'rollup-plugin-sourcemaps'; | ||
|
||
export default { | ||
entry: `compiled/formik.js`, | ||
targets: [{ dest: 'dist/formik.es6.js', format: 'es' }, { dest: 'dist/formik.js', format: 'cjs' }], | ||
sourceMap: true, | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: ['react'], | ||
globals: { | ||
react: 'React', | ||
export default [ | ||
{ | ||
entry: `compiled/formik.js`, | ||
targets: [ | ||
{ dest: 'dist/formik.es6.js', format: 'es' }, | ||
{ dest: 'dist/formik.js', format: 'cjs' }, | ||
], | ||
sourceMap: true, | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: ['react', 'prop-types'], | ||
globals: { | ||
react: 'React', | ||
'prop-types': 'PropTypes', | ||
}, | ||
exports: 'named', | ||
plugins: [ | ||
// Allow node_modules resolution, so you can use 'external' to control | ||
// which external modules to include in the bundle | ||
// https://github.com/rollup/rollup-plugin-node-resolve#usage | ||
resolve(), | ||
// Resolve source maps to the original source | ||
sourceMaps(), | ||
], | ||
}, | ||
exports: 'named', | ||
plugins: [ | ||
// Allow node_modules resolution, so you can use 'external' to control | ||
// which external modules to include in the bundle | ||
// https://github.com/rollup/rollup-plugin-node-resolve#usage | ||
resolve(), | ||
// Resolve source maps to the original source | ||
sourceMaps(), | ||
], | ||
}; | ||
{ | ||
entry: `compiled/next.js`, | ||
targets: [ | ||
{ dest: 'dist/next.es6.js', format: 'es' }, | ||
{ dest: 'dist/next.js', format: 'cjs' }, | ||
], | ||
sourceMap: true, | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: ['react', 'prop-types'], | ||
globals: { | ||
react: 'React', | ||
'prop-types': 'PropTypes', | ||
}, | ||
exports: 'named', | ||
plugins: [ | ||
// Allow node_modules resolution, so you can use 'external' to control | ||
// which external modules to include in the bundle | ||
// https://github.com/rollup/rollup-plugin-node-resolve#usage | ||
resolve(), | ||
// Resolve source maps to the original source | ||
sourceMaps(), | ||
], | ||
}, | ||
]; |
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
Oops, something went wrong.