Closed Bug 1356586 Opened 7 years ago Closed 7 years ago

Properly exclude dirs for babel transpilation

Categories

(DevTools :: Netmonitor, enhancement, P1)

enhancement

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Iteration:
55.3 - Apr 17
Tracking Status
firefox55 --- fixed

People

(Reporter: Honza, Assigned: Honza)

References

Details

(Whiteboard: [netmonitor])

Attachments

(1 file)

This is a follow up for bug 1356146

https://bugzilla.mozilla.org/show_bug.cgi?id=1356146#c12

Webpack.config doesn't work properly in Windows.

Honza
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
Flags: qe-verify-
Priority: -- → P1
Whiteboard: [netmonitor]
Comment on attachment 8858329 [details]
Bug 1356586 - Properly exclude dirs for babel transpilation;

https://reviewboard.mozilla.org/r/130288/#review132978

It works on my Mac. Thanks!

::: devtools/client/netmonitor/webpack.config.js:120
(Diff revision 1)
>  webpackConfig.plugins = mappings.map(([regex, res]) =>
>    new NormalModuleReplacementPlugin(regex, res));
>  
> -// Exclude to transplie all scripts in devtools/ but not for this folder
> -webpackConfig.babelExcludes = new RegExp(
> -  `^${path.join(__dirname, "../../")}(.(?!${path.basename(__dirname)}))*$`);
> +// Exclude to transpile all scripts in devtools/ but not for this folder
> +const basePath = path.join(__dirname, "../../").replace(/\\/g, "\\\\");
> +const baseName =  path.basename(__dirname);

nit: remove this additional white space at `=  path`
Comment on attachment 8858329 [details]
Bug 1356586 - Properly exclude dirs for babel transpilation;

https://reviewboard.mozilla.org/r/130288/#review132980
Attachment #8858329 - Flags: review?(rchien) → review+
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a844eee0974
Properly exclude dirs for babel transpilation; r=rickychien
https://hg.mozilla.org/mozilla-central/rev/5a844eee0974
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Iteration: --- → 55.3 - Apr 17
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: