chore(webpack) only apply transform-runtime to prod build#29
chore(webpack) only apply transform-runtime to prod build#29justinanastos wants to merge 1 commit intochemoish:masterfrom
Conversation
This will allow this package to `npm-link`'ed.
|
@justinanastos looks interesting—did this implementation come from an article? also, what is the difference between that implementation and the following: process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';or new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
}) |
|
@chemoish This did not come from an article. When trying to
This solution comes from the |
|
I got the idea to test removing |
|
is the workflow to manually run |
|
I was just using the source and not the built file. |
This will allow this package to
npm-link'ed by not usingtransform-runtimeunless we're building production.