mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-26 12:38:04 +03:00
ea28d01691
* CTA welcome prompt and recipes links * fix tests for new recipe names * check that package file exists before build * change file * turn off vuecli tests until we can get them to pass
29 lines
609 B
JavaScript
29 lines
609 B
JavaScript
import typescript from '@rollup/plugin-typescript'
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
import pkg from './package.json'
|
|
|
|
export default {
|
|
treeshake: true,
|
|
perf: true,
|
|
input: 'src/index.ts',
|
|
output: {
|
|
dir: 'dist',
|
|
format: 'cjs',
|
|
entryFileNames: '[name].js',
|
|
exports: 'named'
|
|
},
|
|
plugins: [typescript(), commonjs({ extensions: ['.js'] })],
|
|
external: [
|
|
'fs',
|
|
'path',
|
|
'os',
|
|
...Object.keys(pkg.dependencies || {}),
|
|
...Object.keys(pkg.peerDependencies || {})
|
|
],
|
|
watch: {
|
|
chokidar: true,
|
|
include: 'src/**',
|
|
exclude: 'node_modules/**'
|
|
}
|
|
}
|