Skip to content

Commit fc736dd

Browse files
committed
test(builtins): verify minified
Related to #14
1 parent 85df614 commit fc736dd

4 files changed

Lines changed: 932 additions & 703 deletions

File tree

package-lock.json

Lines changed: 184 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"source": "src/index.ts",
1111
"types": "dist/index.d.ts",
1212
"devDependencies": {
13+
"@rollup/plugin-terser": "^0.4.4",
1314
"@rollup/plugin-typescript": "^12.3.0",
1415
"@types/luxon": "^3.7.1",
1516
"@types/mocha": "^10.0.10",

rollup.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import typescript from '@rollup/plugin-typescript';
22

3+
import terser from '@rollup/plugin-terser';
4+
35
import pkg from './package.json';
46

57

68
const srcEntry = pkg.source;
79

810
export default [
11+
12+
// library builds
913
{
1014
input: srcEntry,
1115
output: [
@@ -28,5 +32,26 @@ export default [
2832
plugins: [
2933
typescript()
3034
]
35+
},
36+
37+
// test build (minified)
38+
{
39+
input: srcEntry,
40+
output: [
41+
{
42+
file: 'tmp/feelin.min.js',
43+
format: 'es',
44+
sourcemap: true
45+
}
46+
],
47+
external: [
48+
'lezer',
49+
'lezer-feel',
50+
'luxon'
51+
],
52+
plugins: [
53+
typescript(),
54+
terser()
55+
]
3156
}
3257
];

0 commit comments

Comments
 (0)