Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
fix: transpile cjs files (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Mallimo authored Mar 29, 2024
1 parent 391a390 commit c5e3968
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports['webpack/app always transpiles node_modules when env is production 1'] = `
exports[`webpack/app always transpiles node_modules when env is production 1`] = `
Object {
"exclude": /\\^\\\\/node_modules\\\\/core-js/,
"include": Array [
"/src",
"/node_modules",
],
"test": /\\\\\\.jsx\\?\\$/,
"test": /\\\\\\.c\\?jsx\\?\\$/,
"use": Array [
Object {
"loader": "babel-loader",
Expand All @@ -21,13 +21,13 @@ Object {
}
`;

exports['webpack/app does not transpile node_modules when DANGEROUSLY_DISABLE_DEPENDENCY_TRANSPILATION true 1'] = `
exports[`webpack/app does not transpile node_modules when DANGEROUSLY_DISABLE_DEPENDENCY_TRANSPILATION true 1`] = `
Object {
"exclude": /\\^\\\\/node_modules\\\\/core-js/,
"include": Array [
"/src",
],
"test": /\\\\\\.jsx\\?\\$/,
"test": /\\\\\\.c\\?jsx\\?\\$/,
"use": Array [
Object {
"loader": "babel-loader",
Expand All @@ -41,14 +41,14 @@ Object {
}
`;

exports['webpack/app transpiles node_modules when DANGEROUSLY_DISABLE_DEPENDENCY_TRANSPILATION false 1'] = `
exports[`webpack/app transpiles node_modules when DANGEROUSLY_DISABLE_DEPENDENCY_TRANSPILATION false 1`] = `
Object {
"exclude": /\\^\\\\/node_modules\\\\/core-js/,
"include": Array [
"/src",
"/node_modules",
],
"test": /\\\\\\.jsx\\?\\$/,
"test": /\\\\\\.c\\?jsx\\?\\$/,
"use": Array [
Object {
"loader": "babel-loader",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = (babelEnv) => merge(
module: {
rules: [
{
test: /\.jsx?$/,
test: /\.c?jsx?$/,
include: pathsToTranspile,
exclude: new RegExp(`^${path.resolve(packageRoot, 'node_modules', 'core-js')}`),
use: [babelLoader(babelEnv)],
Expand Down

0 comments on commit c5e3968

Please sign in to comment.