-
Notifications
You must be signed in to change notification settings - Fork 142
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
STENCIL-3243 run the theme bundling script (webpack) in a different process #286
STENCIL-3243 run the theme bundling script (webpack) in a different process #286
Conversation
…rocess (fork) & fix a bunch of tests
If this prevents Webpack from picking up JSPM's polyfill of |
That is exactly what is doing @dstaley. We read your article, and we are in the process of upgrading Cornerstone to use Webpack2. So we thank you. |
@@ -34,6 +34,7 @@ | |||
"accept-language-parser": "^1.0.2", | |||
"archiver": "^0.14.4", | |||
"async": "^1.3.0", | |||
"babel-eslint": "^7.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you! this gets the build working now, with the babel-eslint parser
} | ||
}); | ||
|
||
// process.send('ready'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for the comment
LGTM; 👍 and i confirm that it works with the webpack 2 changes to Cornerstone |
STENCIL-3243
Run the theme bundling script (webpack) in a different process (fork)
Webpack was run from the cli using a
require()
call to a file in the theme directory. This makes webpack to use dependencies fromstencil-cli
instead of only using dependencies from the theme itselfThis requires a change in Cornerstone
stencil.conf.js
format, but is written to be backwards compatible.Instead of
require
ing the file directly fromstencil-cli
, we are now usingchild_process.fork()
and communicating with the process over an IPC communication channel@bigcommerce/stencil-team