bump dependencies and update webpack config

master
Atul R 5 years ago
parent 817ad4209d
commit 4179c58c99
  1. 2312
      package-lock.json
  2. 30
      package.json
  3. 21
      webpack.config.js

2312
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -11,26 +11,26 @@
"start": "qode --inspect ./dist/index.js" "start": "qode --inspect ./dist/index.js"
}, },
"dependencies": { "dependencies": {
"@nodegui/nodegui": "^0.13.1", "@nodegui/nodegui": "^0.15.2",
"@nodegui/react-nodegui": "^0.4.0", "@nodegui/react-nodegui": "^0.5.0",
"open": "^7.0.0", "open": "^7.0.2",
"react": "^16.12.0" "react": "^16.13.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.7.7", "@babel/core": "^7.8.7",
"@babel/preset-env": "^7.7.7", "@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.7.4", "@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.7.7", "@babel/preset-typescript": "^7.8.3",
"@types/node": "^12.12.22", "@types/node": "^12.12.29",
"@types/react": "^16.9.17", "@types/react": "^16.9.23",
"@types/webpack-env": "^1.14.1", "@types/webpack-env": "^1.15.1",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"file-loader": "^5.0.2", "file-loader": "^5.1.0",
"fork-ts-checker-webpack-plugin": "^3.1.1", "fork-ts-checker-webpack-plugin": "^3.1.1",
"native-addon-loader": "^2.0.1", "native-addon-loader": "^2.0.1",
"typescript": "^3.7.4", "typescript": "^3.8.3",
"webpack": "^4.41.4", "webpack": "^4.42.0",
"webpack-cli": "^3.3.10" "webpack-cli": "^3.3.11"
} }
} }

@ -12,10 +12,6 @@ module.exports = (env, argv) => {
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "dist"),
filename: "index.js" filename: "index.js"
}, },
node: {
__dirname: true,
__filename: true
},
module: { module: {
rules: [ rules: [
{ {
@ -28,27 +24,25 @@ module.exports = (env, argv) => {
}, },
{ {
test: /\.(png|jpe?g|gif|svg|bmp|otf)$/i, test: /\.(png|jpe?g|gif|svg|bmp|otf)$/i,
use: [{ use: [
{
loader: "file-loader", loader: "file-loader",
options: { options: { publicPath: "dist" }
publicPath: "dist"
} }
}] ]
}, },
{ {
test: /\.node/i, test: /\.node/i,
use: [ use: [
{ {
loader: "native-addon-loader", loader: "native-addon-loader",
options: { options: { name: "[name]-[hash].[ext]" }
name: "[name]-[hash].[ext]"
}
} }
] ]
} }
] ]
}, },
plugins: [], plugins: [new CleanWebpackPlugin()],
resolve: { resolve: {
extensions: [".tsx", ".ts", ".js", ".jsx", ".json"] extensions: [".tsx", ".ts", ".js", ".jsx", ".json"]
} }
@ -63,8 +57,5 @@ module.exports = (env, argv) => {
config.entry.unshift("webpack/hot/poll?100"); config.entry.unshift("webpack/hot/poll?100");
} }
if (argv.p) {
config.plugins.push(new CleanWebpackPlugin());
}
return config; return config;
}; };

Loading…
Cancel
Save