{"repo":"slavafyi/vite-plugin-shopify-import-maps","free":true,"listed":false,"github":"https://github.com/slavafyi/vite-plugin-shopify-import-maps","clone":"git clone https://github.com/slavafyi/vite-plugin-shopify-import-maps.git","description":"Enhances Shopify theme development by adding support for import-maps","language":"TypeScript","stars":21,"topics":["shopify","shopify-theme","shopify-themes"],"license":"MIT","category":"ecommerce","readme_excerpt":"vite-plugin-shopify-import-maps The vite-plugin-shopify-import-maps enhances Shopify theme development by adding support for import-maps which can be used to control the resolution of module specifiers. Requirements Before using this plugin, make sure you have the vite-plugin-shopify installed. This plugin provides the necessary underlying setup for developing Shopify themes with Vite. Install Usage 1. Add ES Module Shims to the tag in your theme.liquid file. 2. Render the importmap snippet file before performing any imports: 3. Add the vite-plugin-shopify-import-maps to your vite.config.js file: After executing the build command, the importmap.liquid file will be generated in the snippets folder in your theme root directory. Options themeRoot - Type: string - Default: './' Root path to your Shopify theme directory. snippetFile - Type: string - Default: 'importmap.liquid' Specifies the file name of the snippet that include import map. bareModules - Type: boolean BareModules - Default: false Configure bare specifier remapping for JavaScript modules. Example: This generates the importmap.liquid file: modulePreload - Type: boolean - Default: false This option when set to true , generates modulepreload link tags below the import map script tag. Troubleshooting If you have any problems or have suggestions, welcome to issues. Importing asset files (e.g. fonts, images) does not use the version parameter from Shopify CDN This is not the scope of import map, as it is are designed to m","default_branch":null,"files":null,"tree":[],"storefront":"/r/slavafyi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slavafyi/vite-plugin-shopify-import-maps/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}