1
1
mirror of https://github.com/tauri-apps/tauri.git synced 2024-12-26 12:38:04 +03:00
tauri/tooling/create-tauri-app/rollup.config.js
Jacob Bolda ea28d01691
create-tauri-app welcome prompt and recipes links ()
* 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
2021-05-09 09:31:01 -05:00

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/**'
}
}