Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken GraphiQL minified build #982

Merged
merged 5 commits into from
Oct 19, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/graphiql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
"git add"
]
},
"browserify": {
"transform": [["babelify", { "presets": ["@babel/preset-env"] }]]
},
"dependencies": {
"codemirror": "^5.47.0",
"codemirror-graphql": "^0.11.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/resources/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ babel src --ignore __tests__ --out-dir dist/
echo "Bundling graphiql.js..."
browserify -g browserify-shim -s GraphiQL dist/index.js > graphiql.js
echo "Bundling graphiql.min.js..."
browserify -g browserify-shim -t uglifyify -s GraphiQL graphiql.min.js | uglifyjs -c > graphiql.min.js
browserify -g browserify-shim -t uglifyify -s GraphiQL graphiql.js | uglifyjs -c > graphiql.min.js
echo "Bundling graphiql.css..."
postcss --no-map --use autoprefixer -d dist/ css/*.css
cat dist/*.css > graphiql.css
Expand Down