Skip to content

Commit

Permalink
Merge pull request #56 from egeriis/add-commonjs-build
Browse files Browse the repository at this point in the history
Add back CommonJS build
  • Loading branch information
egeriis committed Jan 22, 2019
2 parents 7877329 + 614b4c6 commit c080b25
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 149 deletions.
1 change: 1 addition & 0 deletions lib/legacy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 1 addition & 146 deletions lib/module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "zipcelx",
"version": "1.6.0",
"description": "JSON Transformer to create .xlsx files",
"main": "lib/module.js",
"browser": "lib/module.js",
"main": "lib/legacy.js",
"module": "lib/module.js",
"standalone-build": "lib/standalone.js",
"scripts": {
"test": "jest",
Expand Down
12 changes: 11 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ export default [
input: 'src/zipcelx.js',
external: Object.keys(pkg.dependencies),
output: [
{ file: pkg.browser, format: 'es' }
{ file: pkg.main, format: 'cjs' }
],
plugins: [
uglify()
]
},
{
input: 'src/zipcelx.js',
external: Object.keys(pkg.dependencies),
output: [
{ file: pkg.module, format: 'es' }
]
}
];

0 comments on commit c080b25

Please sign in to comment.