Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup watch does not recompile ES module on change of an imported less dependency dependency #2

Open
katrotz opened this issue Jun 9, 2017 · 0 comments

Comments

@katrotz
Copy link
Owner

katrotz commented Jun 9, 2017

Rollup watch does not recompile ES module on change of an imported less dependency dependency.

index.js

import styles from index.less;
// which becomes `var styles = "body {\n  font-size: 12px;\n}"`
// and is not reevaluated when dependencies of the index.less change

index.less

@import-once "dependency.less"

dependency.less

body {
   font-size: 12px;
}

Note: Currently the less-modules plugin inserts fake "imports" in the compiled less to ES module that trigger the rollup-watch to rebuild on less dependency change which works fine for the output css files, but fails to work for less modules imported into ES file.

Depends on the resolution of rollup/rollup#1203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant