File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
libs/remix-core-plugin/src/lib Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,21 @@ export class FetchAndCompile extends Plugin {
176
176
}
177
177
}
178
178
const { config, compilationTargets, version } = data
179
+ /*
180
+ * If the remappings are defined in the config, we need to update them to point to the targetPath
181
+ * it's beeing disabled for the moment.
182
+ */
183
+ /*if (config && config.settings && config.settings.remappings) {
184
+ console.log(config.settings.remappings)
185
+ config.settings.remappings = config.settings.remappings.map((remapping) => {
186
+ let [virtual, path] = remapping.split('=')
187
+ if (virtual.includes(':')) {
188
+ let [scope, path] = virtual.split(':')
189
+ virtual = `${targetPath}/${scope}:${path}`
190
+ }
191
+ return `${virtual}=${targetPath}/${path}`
192
+ })
193
+ }*/
179
194
180
195
try {
181
196
setTimeout ( _ => this . emit ( 'compiling' , config . settings ) , 0 )
You can’t perform that action at this time.
0 commit comments