Skip to content

Commit

Permalink
build examples esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jan 30, 2024
1 parent fffa920 commit ded7386
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions scripts/build-normalized-example
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* redundant Vega output specs.
*/

const fs = require('fs');
const vl = require('../build/vega-lite');
const stableStringify = require('fast-json-stable-stringify');
const compactStringify = require('json-stringify-pretty-compact');
import fs from 'fs';
import vl from '../build/vega-lite/src/index.js';
import stableStringify from 'fast-json-stable-stringify';
import compactStringify from 'json-stringify-pretty-compact';

const args = require('yargs').demand(0).argv;

Expand Down
8 changes: 4 additions & 4 deletions scripts/build-normalized-examples
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* redundant Vega output specs.
*/

const fs = require('fs');
const vl = require('../build/vega-lite');
const stableStringify = require('fast-json-stable-stringify');
const compactStringify = require('json-stringify-pretty-compact');
import fs from 'fs';
import vl from '../build/vega-lite/src/index.js';
import stableStringify from 'fast-json-stable-stringify';
import compactStringify from 'json-stringify-pretty-compact';

const DIR = __dirname + '/..';
const SPECS = '/examples/specs';
Expand Down

0 comments on commit ded7386

Please sign in to comment.