-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: revert "feat: use microbundle instead of rollup"
This reverts commit 5199cdd
- Loading branch information
Showing
7 changed files
with
1,100 additions
and
3,022 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
File renamed without changes.
File renamed without changes.
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,47 @@ | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import sourceMaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import json from '@rollup/plugin-json' | ||
import sizes from 'rollup-plugin-sizes' | ||
|
||
import pkg from './package.json' | ||
|
||
const libraryName = 'votes' | ||
|
||
export default { | ||
input: `src/${libraryName}.ts`, | ||
output: [ | ||
{ | ||
file: pkg.main, | ||
name: 'votes', | ||
format: 'umd', | ||
sourcemap: true, | ||
globals: (a) => { | ||
const split = a.split('/') | ||
return split[split.length - 1] | ||
}, | ||
}, | ||
{ | ||
file: pkg.module, | ||
name: 'votes', | ||
format: 'es', | ||
sourcemap: true, | ||
}, | ||
], | ||
external: (id) => Object.keys(pkg.dependencies).some((d) => id.startsWith(d)), | ||
watch: { | ||
include: 'src/**', | ||
}, | ||
plugins: [ | ||
json(), | ||
typescript(), | ||
commonjs(), | ||
resolve({ | ||
jsnext: true, | ||
skip: Object.keys(pkg.dependencies), | ||
}), | ||
sourceMaps(), | ||
sizes(), | ||
], | ||
} |
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.