Skip to content

Commit

Permalink
Merge pull request #12 from PeculiarVentures:node-v12
Browse files Browse the repository at this point in the history
fix: Error on Node v12 with ?? operator
  • Loading branch information
microshine authored Feb 22, 2022
2 parents 368b17d + 912a71c commit 9c457d8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default [
clean: true,
tsconfigOverride: {
compilerOptions: {
target: "ES6",
module: "ES2015",
removeComments: true,
}
Expand All @@ -34,6 +35,24 @@ export default [
file: pkg.main,
format: "cjs",
},
],
},
{
input,
plugins: [
typescript({
check: true,
clean: true,
tsconfigOverride: {
compilerOptions: {
module: "ES2015",
removeComments: true,
}
}
}),
],
external: [...external],
output: [
{
banner,
file: pkg.module,
Expand Down

0 comments on commit 9c457d8

Please sign in to comment.