You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API - Clarify Upgrade Path for Deprecated Functionality #1268
Reading through the loader documentation, I noticed that this.exec is deprecated, but the docs don't mention why it was deprecated or whether there is a different API that should be used in its place. This would be helpful information for loader authors, especially since webpack-maintained loaders that rely on this functionality (e.g.) still appear to use this API.
Sounds reasonable, thanks for pointing this out @smably. Once we figure out the answer to this would you be interested in submitting a pr to resolve this?
@webpack/documentation-team can someone point us to the replacement method or new workflow that replaced this.exec?
changed the title [-]Document upgrade path for deprecated context properties[/-][+]API - Clarify Upgrade Path for Deprecated Functionality[/+]on Jun 15, 2017
Activity
skipjack commentedon Jun 5, 2017
Sounds reasonable, thanks for pointing this out @smably. Once we figure out the answer to this would you be interested in submitting a pr to resolve this?
@webpack/documentation-team can someone point us to the replacement method or new workflow that replaced
this.exec?smably commentedon Jun 5, 2017
Yes, I'd be happy to open a PR to fix this!
[-]Document upgrade path for deprecated context properties[/-][+]API - Clarify Upgrade Path for Deprecated Functionality[/+]sokra commentedon Jul 6, 2017
You can replace it with the following function:
skipjack commentedon Aug 9, 2017
@smably I know it's been a little while but does the above comment answer your question? Would you still be interested in submitting a PR?
docs(api): link to alternative for `this.exec`
docs(api): link to alternative for `this.exec`
avesus commentedon Jan 8, 2018
Usage:
alexsegura commentedon Jul 24, 2019
I've been using floatdrop/require-from-string for this 🤷♂️
make loader Webpack@5 compatible using webpack/webpack.js.org#1268 (c…
mnpenner commentedon Mar 22, 2020
This doesn't seem to work?
It can't handle
export default:ERROR in Error: Child compilation failed: Module build failed (from ./loaders/js2json-loader.js): /home/mpen/Projects/crap/aaa-test-project/src/pwa.webmanifest.ts:18 export default manifest; ^^^^^^ SyntaxError: Unexpected token 'export