This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 341
Module browser bundle configuration using webpack #48
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ea9763c
Adding webpack config to create bundle
schrepfler 243d810
Adding browser bundle declaration in package.json
schrepfler 10ac03a
Describing feature to changelog
schrepfler 4c9b4ff
Adding reference to webpack in package.json
schrepfler 30a1d44
Adding webpack step to prepublish and declaring library name and targ…
schrepfler e0dd42e
Change library export as graphql-subscriptions
schrepfler 3195c4a
As the name is actually an existing artifact, changed to subscription…
schrepfler ee4b77f
Adding config which exposes the client as a global.
schrepfler c0939a8
Taking care of PR review comments.
schrepfler 8d35f0c
Reverting dependency updates to leave for a future patch
schrepfler 815d97e
Adding webpack config to create bundle
schrepfler 8b6fd90
Adding browser bundle declaration in package.json
schrepfler b001028
Describing feature to changelog
schrepfler c2e7a47
Adding reference to webpack in package.json
schrepfler c0604b9
Adding webpack step to prepublish and declaring library name and targ…
schrepfler ad34073
Change library export as graphql-subscriptions
schrepfler a481a65
As the name is actually an existing artifact, changed to subscription…
schrepfler af2ffa0
Adding config which exposes the client as a global.
schrepfler 5fc3497
Rebased
schrepfler 90a160b
Tried rebase, had to modify package.json as was getting in loop
schrepfler e1d68de
Reverting to master dependencies
schrepfler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ dist | |
coverage | ||
typings | ||
npm-debug.log | ||
browser/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
context: path.join(__dirname, '/src'), | ||
entry: './client.ts', | ||
output: { | ||
path: path.join(__dirname, '/browser'), | ||
filename: 'bundle.js', | ||
library: 'SubscriptionsTransportWs' | ||
}, | ||
resolve: { | ||
extensions: ['', '.json', '.ts', '.js'] | ||
}, | ||
module: { | ||
loaders: [ | ||
{ test: /\.ts$/, loader: 'ts-loader' }, | ||
{ test: /\.json$/, loader: 'json-loader' } | ||
] | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nitpick: reference this PR number in the changelog