We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e18625 commit 978b22fCopy full SHA for 978b22f
scripts/compile/helpers.js
@@ -3,13 +3,14 @@
3
4
const I = require('immutable-ext');
5
const Either = require('data.either');
6
-const path = require('path');
7
const { ui, variants } = require('../ui');
8
9
const FOLDERNAME = '__internal';
10
11
-const webpackPath = prefix => filepath =>
12
- path.join(prefix, filepath.replace(/^\.\//, '').concat('.js'));
+const webpackPath = prefix => filepath => {
+ const pathSegments = filepath.concat('.js').split('/');
+ return `${prefix}/${pathSegments.join('/')}`;
13
+};
14
15
const setKeyIfExists = (keypath, fixFilePath) => (entry, item) =>
16
Either.fromNullable(item.get(keypath)).fold(
0 commit comments