fix: sourcemaps for compiled flecks
This commit is contained in:
parent
d6d7260799
commit
e35f87b888
|
@ -282,6 +282,7 @@ export default class ServerFlecks extends Flecks {
|
|||
...babelmerge(...rcBabel.map(([, babel]) => babel)),
|
||||
ignore: [resolve(join(sourcepath, '..', 'node_modules'))],
|
||||
only: [resolve(join(sourcepath, '..'))],
|
||||
sourceMaps: 'inline',
|
||||
};
|
||||
debug("require('@babel/register')(%O)", config);
|
||||
register({
|
||||
|
@ -328,6 +329,13 @@ export default class ServerFlecks extends Flecks {
|
|||
},
|
||||
'__non_webpack_require__',
|
||||
],
|
||||
[
|
||||
'prepend',
|
||||
{
|
||||
prepend: "require('source-map-support/register');",
|
||||
},
|
||||
'source-map-support',
|
||||
],
|
||||
],
|
||||
});
|
||||
compiling.forEach((fleck) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user