Skip to content

Commit

Permalink
build: switch bundler for deploy previews back to parcel (#9362)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall authored May 31, 2024
1 parent b32c73c commit b3c69bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/build-editor-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

set -eo pipefail

# Build the docs site and replace the main build with the local copy of vega-lite
echo "Attempting install"
# apt install rsync
# Build the editor site and replace the main build with the local copy of vega-lite
echo "Starting install"

yarn build
yarn link
git clone https://github.com/vega/editor.git

#
cd editor
yarn --frozen-lockfile --ignore-scripts
yarn link vega-lite
Expand All @@ -32,5 +30,7 @@ cat <<EOF > public/spec/vega/index.json
{}
EOF

# TBD if some vendor files are needed
yarn run vite build --base /
# Build the editor site in the dist folder
# Disable minification to make it easier to debug, and because sourcemaps
# exceed 25 MB limit on cloudflare
yarn run build:only --public-url / --no-optimize --no-source-maps

0 comments on commit b3c69bb

Please sign in to comment.