You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
import { Rule } from 'webpack';
|
|
import { Environment, Mode } from '../types';
|
|
/**
|
|
* Creates a Rule for loading Application code and packages from the Expo ecosystem.
|
|
* This method attempts to recreate how Metro loads ES modules in the `node_modules` folder.
|
|
*
|
|
* @param env
|
|
* @internal
|
|
*/
|
|
export declare function createBabelLoaderFromEnvironment(env: Pick<Environment, 'babel' | 'locations' | 'projectRoot' | 'config' | 'mode' | 'platform'>): Rule;
|
|
/**
|
|
* A complex babel loader which uses the project's `babel.config.js`
|
|
* to resolve all of the Unimodules which are shipped as ES modules (early 2019).
|
|
* @category loaders
|
|
*/
|
|
export default function createBabelLoader({
|
|
/**
|
|
* The webpack mode: `"production" | "development"`
|
|
*/
|
|
mode, projectRoot: inputProjectRoot, babelProjectRoot, include, verbose, platform, useCustom, ...options }?: {
|
|
projectRoot?: string;
|
|
useCustom?: boolean;
|
|
mode?: Mode;
|
|
babelProjectRoot?: string;
|
|
include?: string[];
|
|
verbose?: boolean;
|
|
[key: string]: any;
|
|
}): Rule;
|