Shopify / ui-extensions

MIT License
269 stars 35 forks source link

How to remove logging during build for admin ui extensions? #2472

Open daviareias opened 1 week ago

daviareias commented 1 week ago

I wonder if there's a way to do this in Shopify?

Example

If you use this toml file:

[[extensions]]
name = "My extension"
handle = "some-handle"
type = "ui_extension"

[[extensions.targeting]]
module = "./src/BlockExtension.ts"
target = "admin.order-details.block.render"

@shopify/cli will produce a minified file at dist/BlockExtension.js but won't give you any options to remove logging