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
@@ -36,7 +36,7 @@ async function modular({ components }) {
36
36
.replace('//INSTALL_COMPONENTS\n','')
37
37
.replace(
38
38
'//IMPORT_HELPERS',
39
-
"import request from './shared/request';\nimport * as utils from './shared/utils';\nimport { getSupport } from './shared/get-support';\nimport { getDevice } from './shared/get-device';",
39
+
"import request from './shared/request.js';\nimport * as utils from './shared/utils.js';\nimport { getSupport } from './shared/get-support.js';\nimport { getDevice } from './shared/get-device.js';",
40
40
)
41
41
.replace(
42
42
'//NAMED_EXPORT',
@@ -61,7 +61,7 @@ async function modular({ components }) {
61
61
comps
62
62
.map(
63
63
(component)=>
64
-
`import ${component.capitalized} from './components/${component.name}/${component.name}';`,
64
+
`import ${component.capitalized} from './components/${component.name}/${component.name}.js';`,
65
65
)
66
66
.join('\n'),
67
67
)
@@ -71,7 +71,7 @@ async function modular({ components }) {
71
71
)
72
72
.replace(
73
73
'//IMPORT_HELPERS',
74
-
"import request from './shared/request';\nimport * as utils from './shared/utils';\nimport { getSupport } from './shared/get-support';\nimport { getDevice } from './shared/get-device';",
74
+
"import request from './shared/request.js';\nimport * as utils from './shared/utils.js';\nimport { getSupport } from './shared/get-support.js';\nimport { getDevice } from './shared/get-device.js';",
0 commit comments