Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix: Fixes code splitting issue when Quantum doesn't take path resolv…
Browse files Browse the repository at this point in the history
…er (#867)

* Update index.js

- use correct split config options with quantum

* Update index.js

- changes const to var
- making short var name
  • Loading branch information
leon-andria authored and nchanged committed Oct 16, 2017
1 parent ffa1462 commit 942e599
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions modules/fuse-box-responsive-api/index.js
Expand Up @@ -235,7 +235,17 @@
/* @if codeSplitting */
if (bMapping.i && bMapping.i[id]) {
var data = bMapping.i[id];
req(bMapping.c.b + data[0], function(err, result) {
/* @if universal */
var path = isBrowser ? bMapping.c.b : bMapping.c.s;
/* @end */
/* @if server */
var path = bMapping.c.s;
/* @end */

/* @if browser */
var path = bMapping.c.b;
/* @end */
req(path + data[0], function(err, result) {

/* @if browser */
if (!err) { new Function(result)(); }
Expand Down Expand Up @@ -328,4 +338,4 @@

/* @if !isContained */
})();
/* @end */
/* @end */

0 comments on commit 942e599

Please sign in to comment.