Comments (6)
@gagayang What are the plugins that do not work ?
from react-worker-dom.
@axemclion In my case, when I import react-worker-dom
webpack do not compile your project. Also this project is not in npm. Looks like it is really only for demo
from react-worker-dom.
@MrZaYaC I am currently working on updating this for React 15.x . What is the error you get when you are trying to compile the project ?
from react-worker-dom.
@axemclion I got no errors, just import
stay import
, Webpack didn`t compile to ES5 your project.
Here is my config
alias: {
'react-worker-dom': path.resolve(__dirname, 'node_modules/react-worker-dom/src/page/index.js'),
'react-worker-dom-worker': path.resolve(__dirname, 'node_modules/react-worker-dom/src/worker/index.js')
}
test: /\.jsx?$/,
loader: 'babel',
exclude: /node_modules/,
include: [/node_modules\/react-worker-dom/],
query: {
presets: ['react', 'es2015', 'stage-0']
}
Error:
Uncaught SyntaxError: Unexpected token import
function(module, exports) {
import React from 'react';
import reactDOM from 'react-worker-dom'; // Instead of using react-dom
reactDOM.render(new Worker('worker.bundle.js'), document.getElementById('app'));
}
from react-worker-dom.
@axemclion Could you please publish your project to npm with compiled dist, so we can import your project like normal people? Thanx
from react-worker-dom.
I'm following the Usage instruction but something is unclear to me
import ReactWorkerDOM from 'react-worker-dom-worker';
I see that the test example Webpack server is mapping react-worker-dom-worker
to './../src/worker/index.js
. Am I supposed to have to do something like that?
from react-worker-dom.
Related Issues (11)
- Update project to work with React v15+ HOT 3
- Uncaught ReferenceError: webpackJsonp is not defined(…)
- gh-pages branch, so I don't have to clone to try HOT 2
- npm run demo failing HOT 1
- Is this project dead. Any status on the roadmap? HOT 2
- Demo does not make important/relevant benchmarking information clear HOT 2
- Npm Packaging HOT 3
- ToDo WebWorker demo bug HOT 1
- Using with Redux HOT 3
- react-worker-dom library HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-worker-dom.