-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
31 lines (27 loc) · 878 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const json = require("@rollup/plugin-json");
module.exports = [
{
input: "src/extension.js",
output: {
file: "extension/index.js",
format: "cjs",
},
plugins: [
json({
// All JSON files will be parsed by default,
// but you can also specifically include/exclude files
exclude: ["node_modules/**"],
// for tree-shaking, properties will be declared as
// variables, using either `var` or `const`
preferConst: true, // Default: false
// specify indentation for the generated default export —
// defaults to '\t'
indent: " ",
// ignores indent and generates the smallest code
compact: true, // Default: false
// generate a named export for every property of the JSON object
namedExports: true, // Default: true
}),
],
},
];