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
Isobuild watch and build unnecessary files - under Meteor > v1.2 #7842
Comments
Ah see you posted it here as well next to the forums. Try: #7668 |
A test added in the repository to 1.4.2-beta.7 , same issue. |
A test added in the repository to 1.4.2-rc3 , same issue. |
@mitar is it possible that this issue relates to your need for .* files ignoring mentioned here #7668 (comment) or is this another usecase? |
From an issue triage standpoint, I haven't investigated this beyond confirming this reproduction however, it's worth pointing out in your reproduction that when you first run it, it actually only prints the message once (reported as
If you then stop the server and start it again, only then will you start seeing the second message from |
There have been several file watcher changes made since Meteor 1.4.2. Please try things out with a current version of Meteor (>= 1.6), and post back if you're still having this problem. Closing for now - thanks! |
Issue posted first on Meteor forum.
I'd like to raise your attention to two key differences in the way isobuild works between v1.2.1 to v1.3.5.1:
These two differences caused me some issues when upgrading to v1.3.5.1 (before upgrading to v1.4, where the issue exist as well).
I refined an example project that demonstrate the issues.
In the repository, you can find two Meteor projects, one of v1.2.1 and another of v1.3.5.1 (also v1.4.1.1, where the results are similar to v1.3.5.1).
In each of these projects I've installed a package 'example:aaa-compiler' with build plugin that uses the legacy build plugins api (which my legacy code and 3rd party packages that I am using still use) to build files that ends with .aaa , the build process adds to the bundle the js code: "console.log('I should be printed only once!')".
example:aaa-compiler's package.js has only the build plugin, and reference only to the build plugin file.
In the package folder there's a /docs/example-aaa folder with example aaa file.
That example file is symlinked to the app root in both projects.
Running results:
V1.2.1 - Web
V1.2.1 - Server
V1.3.5.1 - Web
V1.3.5.1 - Server
Workaround:
As a workaround, for now, I added .# prefix to the folder that shouldn't be watched. This is a very hacky/not-documented workaround, which make the folders hidden for regular operations which might interfere with the project maintenance.
Questions:
a. If I have big documentation folder (think something > 5mb with lots of files) why should it be watched?
b. Maybe this is a cause for increase in build time in > v1.2?
c. I used to have common code residing in packages which I symlinked to the main app, now I can't do that without getting warnings from the builder (since it now watch duplicates).
Thanks,
-Daniel
The text was updated successfully, but these errors were encountered: