Skip to content

Commit

Permalink
Revert "[Do not merge]: feat(bundling): Add support to rollup for bab…
Browse files Browse the repository at this point in the history
…elUpwardRootMode" (#17422)
  • Loading branch information
jaysoo authored Jun 5, 2023
1 parent b8cfbcc commit 1bba749
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 111 deletions.
5 changes: 0 additions & 5 deletions docs/generated/packages/rollup/executors/rollup.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@
"default": "babel",
"description": "Which compiler to use."
},
"babelUpwardRootMode": {
"type": "boolean",
"description": "Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode",
"default": false
},
"javascriptEnabled": {
"type": "boolean",
"description": "Sets `javascriptEnabled` option for less loader",
Expand Down
2 changes: 1 addition & 1 deletion packages/expo/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { join, normalize, sep } from 'path';
import { ChildProcess, fork } from 'child_process';

import { ensureNodeModulesSymlink } from '../../utils/ensure-node-modules-symlink';
import { unzipBuild } from '../download/download.impl';
import { copyBuildFile, unzipBuild } from '../download/download.impl';

import { ExpoEasBuildOptions } from './schema';
import { removeSync } from 'fs-extra';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "<%= rootTsConfigPath %>",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react-native",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "<%= rootTsConfigPath %>",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react-native",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
Expand Down
6 changes: 0 additions & 6 deletions packages/rollup/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
"version": "16.0.0-beta.1",
"description": "Replace @nrwl/rollup with @nx/rollup",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
},
"update-16-3-1-add-babel-upward-root-mode-flag": {
"cli": "nx",
"version": "16-3-1-beta.0",
"description": "Add babelUpwardRootMode if not already defined",
"implementation": "./src/migrations/update-16-3-1-add-babel-upward-root-mode-flag/update-16-3-1-add-babel-upward-root-mode-flag"
}
},
"packageJsonUpdates": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup/src/executors/rollup/rollup.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function createRollupOptions(
isModern: true,
},
cwd: join(context.root, sourceRoot),
rootMode: options.babelUpwardRootMode ? 'upward' : undefined,
rootMode: 'upward',
babelrc: true,
extensions: fileExtensions,
babelHelpers: 'bundled',
Expand Down
1 change: 0 additions & 1 deletion packages/rollup/src/executors/rollup/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ export interface RollupExecutorOptions {
javascriptEnabled?: boolean;
generateExportsField?: boolean;
skipTypeCheck?: boolean;
babelUpwardRootMode?: boolean;
}
5 changes: 0 additions & 5 deletions packages/rollup/src/executors/rollup/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@
"default": "babel",
"description": "Which compiler to use."
},
"babelUpwardRootMode": {
"type": "boolean",
"description": "Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode",
"default": false
},
"javascriptEnabled": {
"type": "boolean",
"description": "Sets `javascriptEnabled` option for less loader",
Expand Down

This file was deleted.

This file was deleted.

1 comment on commit 1bba749

@vercel
Copy link

@vercel vercel bot commented on 1bba749 Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.