annotate rollup.config.js @ 138:ea0b4e46de2b

release v0.10.0
author drewp@bigasterisk.com
date Sat, 06 May 2023 15:35:11 -0700
parents 6ec759f9009f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
1 import builtins from 'rollup-plugin-node-builtins';
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
2 import commonjs from '@rollup/plugin-commonjs';
34
3d8b98e9c01d building, but without jsonld so far
drewp@bigasterisk.com
parents:
diff changeset
3 import resolve from "@rollup/plugin-node-resolve";
79
0c188ed3bcd8 starting lit upgrade. total mess right now
drewp@bigasterisk.com
parents: 78
diff changeset
4 import typescript from "@rollup/plugin-typescript";
80
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
5 import globals from 'rollup-plugin-node-globals';
34
3d8b98e9c01d building, but without jsonld so far
drewp@bigasterisk.com
parents:
diff changeset
6
78
ea9c9db282d6 automate 'external' list, get all local code to appear in lib.bundle.js
drewp@bigasterisk.com
parents: 75
diff changeset
7
48
b8e5850acca0 local demo; styles
drewp@bigasterisk.com
parents: 47
diff changeset
8 export default [
b8e5850acca0 local demo; styles
drewp@bigasterisk.com
parents: 47
diff changeset
9 {
35
29d8ed02a275 build and tests, including jsonld
drewp@bigasterisk.com
parents: 34
diff changeset
10 input: "src/index.ts",
29d8ed02a275 build and tests, including jsonld
drewp@bigasterisk.com
parents: 34
diff changeset
11 output: {
50
1264ba9ffb10 make a full-element version for pages that want to try to use that
drewp@bigasterisk.com
parents: 48
diff changeset
12 file: "build/lib.bundle.js",
80
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
13 format: "es",
79
0c188ed3bcd8 starting lit upgrade. total mess right now
drewp@bigasterisk.com
parents: 78
diff changeset
14 sourcemap: true,
35
29d8ed02a275 build and tests, including jsonld
drewp@bigasterisk.com
parents: 34
diff changeset
15 },
29d8ed02a275 build and tests, including jsonld
drewp@bigasterisk.com
parents: 34
diff changeset
16 plugins: [
80
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
17 builtins(),
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
18 resolve({
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
19 extensions: [".js", ".ts"],
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
20 browser: true,
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
21 }),
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
22 commonjs(),
7c93e17b1111 more fixes, more original code uncommented
drewp@bigasterisk.com
parents: 79
diff changeset
23 globals(),
79
0c188ed3bcd8 starting lit upgrade. total mess right now
drewp@bigasterisk.com
parents: 78
diff changeset
24 typescript({
86
6ec759f9009f build fixes, dead code, format
drewp@bigasterisk.com
parents: 85
diff changeset
25 tsconfig: './tsconfig.json'
48
b8e5850acca0 local demo; styles
drewp@bigasterisk.com
parents: 47
diff changeset
26 }),
35
29d8ed02a275 build and tests, including jsonld
drewp@bigasterisk.com
parents: 34
diff changeset
27 ]
48
b8e5850acca0 local demo; styles
drewp@bigasterisk.com
parents: 47
diff changeset
28 },
b8e5850acca0 local demo; styles
drewp@bigasterisk.com
parents: 47
diff changeset
29 ];