Skip to content

Commit 36a5dd1

Browse files
committed
fix: changing generated file names
1 parent 19f3533 commit 36a5dd1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
22
"name": "murmur-client",
33
"version": "0.3.9",
4-
"main": "./dist/index.js",
5-
"browser": {
6-
"./dist/index.js": "./dist/client.js"
7-
},
4+
"main": "./dist/node.js",
5+
"browser": "./dist/browser.js",
86
"scripts": {
97
"babel": "babel",
108
"babel:node": "npm-run-all babel:node:*",

webpack.common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const webConfig = {
1515
path: path.resolve(__dirname, "dist"),
1616
library: 'murmur',
1717
libraryTarget: 'commonjs2',
18-
filename: 'client.js'
18+
filename: 'browser.js'
1919
},
2020
module: {
2121
rules: [
@@ -32,7 +32,7 @@ const nodeConfig = {
3232
entry: path.join(__dirname, "src/index.js"),
3333
output: {
3434
path: path.resolve(__dirname, "dist"),
35-
filename: "server.js",
35+
filename: "node.js",
3636
library: 'murmur',
3737
libraryTarget: 'commonjs2',
3838
},

0 commit comments

Comments
 (0)