-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rollup to build the code and generate CommonJS and UMD versions
- Loading branch information
1 parent
2699332
commit cb00c63
Showing
8 changed files
with
294 additions
and
40 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
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,19 @@ | ||
import pkg from './package.json'; | ||
import json from '@rollup/plugin-json'; | ||
|
||
export default [ | ||
{ | ||
input: 'src/slugify.js', | ||
output: [ | ||
{ file: pkg.main, format: 'cjs', exports: 'auto' }, | ||
{ file: pkg.module, format: 'esm', exports: 'auto' }, | ||
{ file: pkg.unpkg, format: 'umd', exports: 'auto', name: 'slugify' } | ||
], | ||
plugins: [ | ||
json({ | ||
compact: true, | ||
namedExports: false | ||
}) | ||
] | ||
} | ||
]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.