mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 20:48:52 +03:00
fa99fda0cf
* add common node libs as externals, hides warning * add license header to vue-cli file
28 lines
607 B
JavaScript
28 lines
607 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",
|
|
...Object.keys(pkg.dependencies || {}),
|
|
...Object.keys(pkg.peerDependencies || {}),
|
|
],
|
|
watch: {
|
|
chokidar: true,
|
|
include: "src/**",
|
|
exclude: "node_modules/**",
|
|
},
|
|
};
|