[Bug]: Shopify CLI for functions development not respecting extension.build toml config #5458
Open
2 tasks done
Labels
Type: Bug
Something isn't working
Please confirm that you have:
In which of these areas are you experiencing a problem?
Function, Extension
Expected behavior
This documentation describes
[extension.build]
to specify external directory to watch for changes, but it looks like CLI is not respecting that config.https://shopify.dev/docs/apps/build/app-extensions/configure-app-extensions#shopify-functions-extensions
Folder structure below.
├── @bc-common
│ ├── bc-common-components
│ │ ├── package.json
│ │ └── src
│ ├── bc-common-scripts
│ ├── bc-types
│ │ └── src
│ ├── tsconfig.json
│ └── vite.config.js
├── README.md
├── SECURITY.md
├── dist
├── extensions
│ ├── discount-off-rrp
│ │ ├── dist
│ │ ├── generated
│ │ ├── locales
│ │ ├── package.json
│ │ ├── schema.graphql
│ │ ├── shopify.extension.toml
│ │ ├── src
│ │ └── vite.config.js
│ ├── discount-off-rrp-js-block
│ │ ├── README.md
│ │ ├── dist
│ │ ├── locales
│ │ ├── package.json
│ │ ├── shopify.extension.toml
│ │ ├── src
│ │ ├── tsconfig.json
│ │ └── vite.config.js
│ ├── product-discount-js
│ │ ├── dist
│ │ ├── generated
│ │ ├── locales
│ │ ├── package.json
│ │ ├── schema.graphql
│ │ ├── shopify.extension.toml
│ │ ├── src
│ │ └── vite.config.js
│ └── product-discount-js-block
│ ├── README.md
│ ├── dist
│ ├── locales
│ ├── package.json
│ ├── shopify.extension.toml
│ └── src
├── index.ts
├── package-lock.json
├── package.json
├── shopify.app.toml
└── yarn.lock
Actual behavior
Changes to the
@bc-common
folder does not trigger a re-build of function UI.Verbose output
Verbose output
Reproduction steps
Operating System
Mac OS Sonoma
Shopify CLI version (
shopify --version
)@shopify/cli/3.75.0 darwin-x64 node-v20.11.0
Shell
No response
Node version (run
node -v
if you're not sure)No response
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: