-
Notifications
You must be signed in to change notification settings - Fork 55
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
Set webpack to have custom props for node and browser #19
Conversation
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.
Using webpack-node-externals
, all modules in node_modules should not be bundled, right?
We have to move some dependencies from devDependencies
, d u agree?
webpack.config.js
Outdated
@@ -34,8 +31,35 @@ module.exports = { | |||
|
|||
plugins: [ | |||
new CheckerPlugin(), | |||
/* |
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.
forgot to remove these?
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.
yeah :)
const { CheckerPlugin } = require('awesome-typescript-loader') | ||
|
||
const srcPath = path.join(__dirname, '/src'); | ||
const libPath = path.join(__dirname, '/lib'); | ||
|
||
module.exports = { | ||
context: srcPath, | ||
const nodeExternals = require('webpack-node-externals'); |
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.
missing in package.json/yarn.lock
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.
fixed
@andersonba hmm that's right, I'm checking now what we should have as deps and devdeps :) |
@andersonba apparently only lodash is needed as a "real" dependency |
Closes #18