-
Notifications
You must be signed in to change notification settings - Fork 15
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
Is it possible to use this library with webpack? #5
Comments
Same problem too! Any idea? |
hi, this problem is caused by exporting /src/ instead of /dist/ library, which is using ES7 syntax. require('socketio-shared-webworker') // returns {} idk y
const io = global.wio |
Hi there! I'm afraid I'm not quite understanding how to use this library with ES6 syntax; would anyone happen to have an example using import? I've tried a few variations of the below, but I can't seem to make anything stick |
You can use this with babel but you'll need to enable the babel plugin https://babeljs.io/docs/en/babel-plugin-proposal-class-properties Here is the
|
How can I use it in the next.js project... |
I have an error wile importing lib like this in angular 9 project
import * as io from 'socketio-shared-webworker';
or
const wio = require('socketio-shared-webworker');
The text was updated successfully, but these errors were encountered: