Skip to content

Commit

Permalink
Merge branch 'main' into benbrown/nomoveproject
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrown authored Apr 7, 2021
2 parents d7103df + 9f6c16e commit 2f17f1a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions Composer/babel.l10n.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// TODO: It would be nice to use the regular expression matching.
// It would be nice to ignore the lib folders rather than listing them one at a time.
// However, as of 4/2021 it doesn't seem to work.
// We have the added complexity that packages/lib contains folders we DO want to process.
//
// /packages\/(?!lib$).+\/lib(\/.*)*/
// This was the negative lookahead regex I tried, but bable never seemed to honor.
// I verified this regex had the right behavior in a regex tester with many path variations.
module.exports = {
presets: ['@babel/react', ['@babel/typescript', { allowNamespaces: true }]],
plugins: ['@babel/plugin-proposal-class-properties'],
ignore: [
'packages/electron-server',
'packages/**/__tests__',
'packages/**/build',
'packages/**/node_modules',
'packages/**/build/**/*.js',
'packages/adaptive-flow/**/lib',
'packages/adaptive-form/**/lib',
'packages/client/public',
'packages/electron-server',
'packages/extension/**/lib',
'packages/extension-client/**/lib',
'packages/form-dialogs/**/lib',
'packages/intellisense/**/lib',
'packages/lib/**/lib',
'packages/server-workers/**/lib',
'packages/test-utils/**/lib',
'packages/tools/**/lib',
'packages/types/**/lib',
'packages/ui-plugins/**/lib',
],
};

0 comments on commit 2f17f1a

Please sign in to comment.