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 86d1d41 commit b076bdfCopy full SHA for b076bdf
repl/importmap.js
@@ -5,7 +5,8 @@
5
function importFile(content) {
6
return "data:text/javascript;base64," + btoa(content);
7
}
8
-const nodeModules = location.href + './node_modules/';
+const dir = location.origin + location.pathname.replace(/[a-z]+.html/, '');
9
+const nodeModules = dir + 'node_modules/';
10
// For React ESM importmap to work you need React ESM: npm i react-es6
11
const react = {
12
'prop-types' : nodeModules + 'react-es6/prop-types/index.js',
0 commit comments