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

Misc fixes for Windows #60

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Misc fixes for Windows #60

merged 1 commit into from
Jul 21, 2016

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jul 21, 2016

Changing how some things work + adding a release script.
Don’t run it 😄

@@ -55,38 +55,11 @@
"webpack-dev-server": "1.14.1"
},
"devDependencies": {
"bundle-deps": "^1.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This utility writes bundledDependencies to package.json so we don’t have to maintain two lists

@ghost ghost added the CLA Signed label Jul 21, 2016
"webpack",
"webpack-dev-server"
]
"optionalDependencies": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Webpack depends on Watchpack depends on Chokidar depends on fsevents.
fsevents is OS X-only.

If we naïvely include webpack into bundledDependencies (which we want to do), fsevents ends up there as well, and Windows machines fail to install the whole bundle.

The solution I’m using is the following:

  1. Populate bundled dependencies as prepublish step
  2. Delete node_modules/fsevents just before publishing so it doesn't get bundled
  3. However! It exists in optionalDependencies so it'll get installed separately on supported systems

@gaearon gaearon merged commit 938ff9d into master Jul 21, 2016
@gaearon gaearon deleted the fix-windows branch July 22, 2016 12:16
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant