We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Input:
loadable(() => import(/* webpackChunkName: 'ChunkA' */ "./ModA"));
Current output:
loadable({ resolved: {}, chunkName () { return "'ChunkA'"; }, isReady (props) { const key = this.resolve(props); if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "'ChunkA'"*/ "./ModA"), requireAsync (props) { const key = this.resolve(props); this.resolved[key] = false; return this.importAsync(props).then((resolved)=>{ this.resolved[key] = true; return resolved; }); }, requireSync (props) { const id = this.resolve(props); if (typeof __webpack_require__ !== 'undefined') { return __webpack_require__(id); } return eval('module.require')(id); }, resolve () { if (require.resolveWeak) { return require.resolveWeak("./ModA"); } return eval('require.resolve')("./ModA"); } });
Expected output:
loadable({ resolved: {}, chunkName () { return "ChunkA"; }, isReady (props) { const key = this.resolve(props); if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "ChunkA"*/ "./ModA"), requireAsync (props) { const key = this.resolve(props); this.resolved[key] = false; return this.importAsync(props).then((resolved)=>{ this.resolved[key] = true; return resolved; }); }, requireSync (props) { const id = this.resolve(props); if (typeof __webpack_require__ !== 'undefined') { return __webpack_require__(id); } return eval('module.require')(id); }, resolve () { if (require.resolveWeak) { return require.resolveWeak("./ModA"); } return eval('require.resolve')("./ModA"); } });
Version: @swc/[email protected]
@swc/[email protected]
The text was updated successfully, but these errors were encountered:
fix(loadable-components): Allow using single quote (#302)
86bdd68
Closes #300
kdy1
Successfully merging a pull request may close this issue.
Input:
Current output:
Expected output:
Version:
@swc/[email protected]
The text was updated successfully, but these errors were encountered: