Skip to content

Commit

Permalink
Rename to babel.config.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 1, 2023
1 parent c837f02 commit 5d6376e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"namedInputs": {
"globalBuildAffectingConfig": [
"{workspaceRoot}/.browserslistrc",
"{workspaceRoot}/babel.config.js",
"{workspaceRoot}/babel.config.cjs",
"{workspaceRoot}/package.json",
"{workspaceRoot}/scripts/getRollupConfig.mjs",
"{workspaceRoot}/tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion scripts/getRollupConfig.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const forceEnvPlugin = (type) =>
/** @param {'legacy' | 'modern'} type */
const babelPlugin = (type) =>
babel({
configFile: resolve(rootDir, 'babel.config.js'),
configFile: resolve(rootDir, 'babel.config.cjs'),
browserslistConfigFile: type === 'modern' ? true : false,
targets:
type === 'modern'
Expand Down

0 comments on commit 5d6376e

Please sign in to comment.