This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
@shopify/web-worker
does not support chunkFilename
being a function
#2807
Labels
Type: Bug 🐛
Something isn't working
Overview
In webpack,
output.chunkFilename
can be either a string or a function returning a string.However, the webpack loader in
@shopify/web-worker
assumes it is only a string:quilt/packages/web-worker/src/webpack-parts/loader.ts
Lines 94 to 96 in 34ac07a
quilt/packages/web-worker/src/webpack-parts/loader.ts
Lines 151 to 155 in 34ac07a
This leads to
TypeError: file.includes is not a function
errors when using something likeTo fix this, first check whether it's a function, and then maybe add a wrapper function that adds the suffix.
Consuming repo
https://github.com/swissspidy/media-experiments
Area
Area: <area>
labels to this issueScope
Is this issue related to a specific package?
Package: <package_name>
label.Checklist
The text was updated successfully, but these errors were encountered: