:contruction: Porting TS to JS
This commit is contained in:
parent
2dbebb87d6
commit
1f10829426
26 changed files with 1910 additions and 792 deletions
22
rollup.node.js
Normal file
22
rollup.node.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
import filesize from 'rollup-plugin-filesize'
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
|
||||
export default {
|
||||
input: 'src/index.js'
|
||||
, output: {
|
||||
file: 'dist/bundle.js'
|
||||
, format: 'cjs'
|
||||
}
|
||||
, plugins: [
|
||||
resolve({
|
||||
browser: false
|
||||
})
|
||||
, babel({
|
||||
exclude: 'node_modules/**'
|
||||
})
|
||||
, terser()
|
||||
, filesize()
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue