Comments (8)
@agoldis https://github.com/sushain97/web2fs-notepad/blob/issue-25/webpack.config.js
from webpack-require-from.
The solution works for me and the documentation looks good as well! The only note I have is that since window
isn't supported in a web worker, self
is required instead: sushain97/web2fs-notepad@06b3ece#diff-028b78cada5fa9a59260b989f3b86ffeR52. The URL needs to be passed from the main thread to the web worker as a message (might be useful to note this as well).
Thanks for your fast (and great) work!
from webpack-require-from.
Great, I will roll out a new npm release later this week
from webpack-require-from.
Resolved by https://github.com/agoldis/webpack-require-from/releases/tag/v1.8.0
from webpack-require-from.
Hi @sushain97! Thanks for discovering and reporting that issue!
Could you please share the webpack version you're using and may be a minimal reproducable example of the code.
Also, did you try to use other options, e.g. https://github.com/agoldis/webpack-require-from#replacesrcmethodname?
EDIT: Seems like the plugin doesn't support webworkers use case, I will need to implement it. I will keep you posted, prob won't take long
from webpack-require-from.
Awesome! Thank you for investigating (and taking up the enhancement).
FTR, my resolved Webpack version is 4.16.5
.
from webpack-require-from.
@sushain97 Can you please share your webpack config
from webpack-require-from.
@sushain97 That was an interesting problem!
Would appreciate if you try to use
yarn add https://github.com/agoldis/webpack-require-from.git#next
and follow the instructions https://github.com/agoldis/webpack-require-from/tree/next#web-worker
Although I've validated the feature and implemented a test, I'd like to make sure it is clear how to use the pluging and support your use case.
There's also a working example https://github.com/agoldis/webpack-require-from/tree/next/example
I am waiting for your feedback regarding:
- The documentation and instructions
- Whether the solution is working for you
from webpack-require-from.
Related Issues (20)
- Seems like Require-from does not work with "webpackHotMiddleware" HOT 4
- Repo says there's no dependencies but the package.json lists a peer dependency
- Feature Request: Pass the defaultPublicPath as an argument to the 'methodName' function
- any solution for css、image ?
- Gracefully fallback to `__webpack_public_path__` HOT 4
- Extra request made to original url in IE/Edge HOT 2
- Thank you :) HOT 2
- expand hooks to css chunk links HOT 5
- webpack v5: doesn't work
- [webpack 5] Uncaught ReferenceError: __webpack_require__ is not defined HOT 2
- Deprecation Warnings with Webpack 5
- ReferenceError: __non_webpack_require__ is not defined at patchSharing HOT 2
- Allow paths replacement for webpack 5 HOT 3
- [Help wanted]Can not apply the `path` options. HOT 3
- Compatibility Issue in older browsers HOT 1
- QUESTION: avoiding the error - MyFunctionName is not a function or not available at runtime HOT 1
- Bump tapable to ^1 + ^2 HOT 1
- Does not work in webpack 5 HOT 3
- chunks injected by webpack-html-plugin still using the static public path
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 webpack-require-from.