Hi! Looking for Original Option_Selection.js file

Topic summary

Request for the original (unminified) development version of Shopify’s option_selection.js, instead of the publicly served minified file that’s hard to read. The asset is typically included via Liquid: {{ ‘option_selection.js’ | shopify_asset_url | script_tag }}.

What was provided:

  • Links shared to a third-party repo (osiset/Shopify-OptionSelectorsCustom) and Shopify’s CDN for the minified script.
  • A suggestion to include the CDN script directly; no readable source was supplied.

Clarifications:

  • The ask is specifically for a readable/dev version (e.g., option_selection.dev.js), not the minified bundle.
  • “Minified” means the code is compressed and obfuscated for performance, reducing readability.

Open questions / status:

  • No official unminified or development source for Shopify’s option_selection.js was identified.
  • It remains unclear if Shopify publishes a dev build or source map for this asset.

Notes:

  • Code snippets and asset URLs are central to the discussion. The thread currently has no resolution; users are seeking a readable version of the Shopify-provided script.
Summarized with AI on January 29. AI used: gpt-5.

HI!

Hope you’re well!

Anybody have the original development version of this ‘options_selection.js’ file?

i know, we have the public version thats variable names doesn’t makes sense when reading.

{{ 'option_selection.js' | shopify_asset_url | script_tag }}

anybody can provide the development version of the shopify asset file?

Thanks!

Hi @arifursdev ,

You can refer: https://github.com/osiset/Shopify-OptionSelectorsCustom

Or if you want to check the file, you can refer to the link: https://cdn.shopify.com/shopifycloud/shopify/assets/themes_support/option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js

Hope it helps!

Thanks for you reply!

But i was actually looking for the original file, as mentioned i know this minified version or i have it.

but that would have really helped me if Shopify could include the development version of the file.

// outputs the minified version
{{ 'option_selection.js' | shopify_asset_url | script_tag }}

// is this possible to add development version or unminified version of this? there is no way shopify developers write there code in unreadable way
{{ 'option_selection.dev.js' | shopify_asset_url | script_tag }}

its public so it makes sense to have a development version of the file for readability.

Hi @arifursdev ,

You can create it yourself, then add the following code directly, it will work fine.

https://cdn.shopify.com/shopifycloud/shopify/assets/themes_support/option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js

Hope it helps!

What he’s saying is that the code at that url: https://cdn.shopify.com/shopifycloud/shopify/assets/themes_support/option_selection-fe6b72c2bbdd3369ac0bfefe8648e3c889efca213baefd4cfb0dd9363563831f.js

Is minified. He wants the development version, so the code is readable. As do I! Any idea where a readable version of that code is, that isn’t minified?