Skip to content

Commit

Permalink
fix: avoid rollup typescript cache
Browse files Browse the repository at this point in the history
Hopefully closes #176
  • Loading branch information
3cp committed Feb 9, 2021
1 parent dc78599 commit d6462be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ async function bunldeCJS() {
plugins: [
typescript2({
tsconfig: project['tsconfig.json'].path,
typescript: ts
typescript: ts,
clean: true
}),
json()
]
Expand Down Expand Up @@ -57,7 +58,8 @@ async function bundleES6() {
plugins: [
typescript2({
tsconfig: project['tsconfig.json'].path,
typescript: ts
typescript: ts,
clean: true
}),
json(),
...(type === 'minified' ? [terser()] : [])
Expand Down Expand Up @@ -106,7 +108,8 @@ async function bundleES5() {
typescript2({
tsconfig: project['tsconfig.json'].path,
tsconfigOverride: { compilerOptions: { target: 'es5' } },
typescript: ts
typescript: ts,
clean: true
}),
json(),
...(type === 'minified' ? [terser()] : [])
Expand Down

0 comments on commit d6462be

Please sign in to comment.