Skip to content

Commit a52c555

Browse files
committed
refactor(build): add umd build
1 parent 7a68981 commit a52c555

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

rollup.config.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,25 @@ const entryName = 'aurelia-validation';
1111

1212
export default [{
1313
input: `src/${entryName}.ts`,
14-
output: {
15-
file: `dist/es2015/${entryName}.js`,
16-
format: 'es'
17-
},
14+
output: [
15+
{
16+
file: `dist/es2015/${entryName}.js`,
17+
format: 'es'
18+
},
19+
{
20+
file: `dist/umd/${entryName}.js`,
21+
format: 'umd',
22+
name: 'au.validation',
23+
globals: {
24+
'aurelia-binding': 'au',
25+
'aurelia-templating': 'au',
26+
'aurelia-dependency-injection': "au",
27+
"aurelia-logging": "au.LogManager",
28+
"aurelia-pal": "au",
29+
"aurelia-task-queue": "au",
30+
}
31+
}
32+
],
1833
plugins: [
1934
typescript({
2035
useTsconfigDeclarationDir: true,

0 commit comments

Comments
 (0)