Skip to content

Changing js mixin does not trigger rebuild in the webpack plugin #1952

Open
@tzachbon

Description

@tzachbon

What happened?

Changing js mixin does not trigger a rebuild in the webpack plugin.
It is also important to mention that even if I change some other file and it does trigger rebuild the mixin values do not change.

Actual Behavior:
It does not trigger rebuild or update the mixin.

Expected behavior:
It would retrigger build and update the values.

Version

4.5.0

Relevant log output

No response

Additional Context

For example, I have 2 files mixin.js and app.st.css which are imported inside my main javascript file.

app.st.css:

@st-import MyMixin from "./mixin.js";

:global(html) {
 -st-mixin: MyMixin
}

mixin.js:

module.exports = () => {
  return {
    'background-color': 'red'
  }
}

When I change the background color it does not trigger rebuild and change the html tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected behavior or exceptionintegrationBundler, test-runner and nodemixinCSS and JS Mixins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions