🔧 Centrally confifured package and rollup files
This commit is contained in:
parent
74e8ef991c
commit
a3ff3a7462
147 changed files with 3196 additions and 273680 deletions
27
packages/plugin-validate/rollup.config.js
Normal file
27
packages/plugin-validate/rollup.config.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import babel from "rollup-plugin-babel";
|
||||
import resolve from "rollup-plugin-node-resolve";
|
||||
import json from "rollup-plugin-json";
|
||||
import minify from "rollup-plugin-babel-minify";
|
||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||
import { name, version, description, author, license } from "./package.json";
|
||||
|
||||
export default {
|
||||
input: "src/index.js",
|
||||
output: {
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
peerDepsExternal(),
|
||||
resolve({ browser: true }),
|
||||
json(),
|
||||
babel({
|
||||
exclude: "node_modules/**",
|
||||
plugins: ["@babel/plugin-proposal-object-rest-spread"]
|
||||
}),
|
||||
minify({
|
||||
comments: false,
|
||||
sourceMap: true,
|
||||
banner: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||
})
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue