Skip to content

Commit

Permalink
feat: simplify rollup script and update to more modern js (vega#8852)
Browse files Browse the repository at this point in the history
chore: simplify rollup script and update to more modern js
  • Loading branch information
domoritz authored and BradyJ27 committed Oct 19, 2023
1 parent f031908 commit e604c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import pkg from './package.json' assert {type: 'json'};
export function disallowedImports() {
return {
resolveId: module => {
if (module === 'vega' || module === 'util' || module === 'd3') {
if (['vega', 'util', 'd3'].includes(module)) {
throw new Error('Cannot import from Vega, Node Util, or D3 in Vega-Lite.');
}
return null;
Expand Down Expand Up @@ -76,7 +76,7 @@ const outputs = [
[
'@babel/env',
{
targets: 'defaults and not IE 11'
targets: 'defaults'
}
],
'@babel/typescript'
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2015",
"module": "es2015",
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "Node",

"esModuleInterop": true,
Expand Down

0 comments on commit e604c75

Please sign in to comment.