|
|
@@ -4,21 +4,20 @@ import typescript from '@rollup/plugin-typescript' |
|
|
|
|
|
|
|
import pkg from './package.json' |
|
|
|
|
|
|
|
const ENTRY_POINT = './lib/index.ts' |
|
|
|
const ENTRY_POINT = './index.ts' |
|
|
|
|
|
|
|
export default [ |
|
|
|
{ |
|
|
|
input: ENTRY_POINT, |
|
|
|
output: { |
|
|
|
dir: pkg.directories.lib, |
|
|
|
format: 'cjs', |
|
|
|
}, |
|
|
|
plugins: [ |
|
|
|
peerDepsExternal({ |
|
|
|
includeDependencies: true, |
|
|
|
}), |
|
|
|
typescript(), |
|
|
|
process.env.NODE_ENV === 'production' && terser(), |
|
|
|
], |
|
|
|
export default { |
|
|
|
input: ENTRY_POINT, |
|
|
|
output: { |
|
|
|
dir: pkg.directories.lib, |
|
|
|
format: 'cjs', |
|
|
|
sourcemap: true, |
|
|
|
}, |
|
|
|
] |
|
|
|
plugins: [ |
|
|
|
peerDepsExternal({ |
|
|
|
includeDependencies: true, |
|
|
|
}), |
|
|
|
typescript(), |
|
|
|
process.env.NODE_ENV === 'production' && terser(), |
|
|
|
], |
|
|
|
} |