[babel-register] ignore built canvas plugins (#25913)

This commit is contained in:
Spencer 2018-11-20 13:58:52 -08:00 committed by GitHub
parent 88af88ccdb
commit ca778375db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,12 @@ var ignore = [
// https://github.com/elastic/kibana/issues/14800#issuecomment-366130268
// ignore paths matching `/node_modules/{a}/{b}`, unless `a`
// is `x-pack` and `b` is not `node_modules`
/\/node_modules\/(?!(x-pack\/|@kbn\/interpreter\/)(?!node_modules)([^\/]+))([^\/]+\/[^\/]+)/
// is `x-pack` or `@kbn/interpreter` and `b` is not `node_modules`
/\/node_modules\/(?!(x-pack\/|@kbn\/interpreter\/)(?!node_modules)([^\/]+))([^\/]+\/[^\/]+)/,
// ignore paths matching `/canvas/canvas_plugin/{a}/{b}` unless
// `a` is `functions` and `b` is `server`
/\/canvas\/canvas_plugin\/(?!functions\/server)([^\/]+\/[^\/]+)/,
];
if (global.__BUILT_WITH_BABEL__) {