Created
February 4, 2022 21:43
-
-
Save mbrowne/4497fe8827c6267bda3b9a8133d2e1c9 to your computer and use it in GitHub Desktop.
Revisions
-
mbrowne created this gist
Feb 4, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ import autoExternal from 'rollup-plugin-auto-external' import json from '@rollup/plugin-json' import ts from 'rollup-plugin-ts' export default { input: ['src/index.ts'], plugins: [ // allow .json files to be imported json(), ts({ transpiler: 'swc', }), autoExternal(), ], output: [ { dir: 'build', format: 'cjs', sourcemap: true, }, ], }