Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deloitte-digital-au/babel-preset-app

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deloitte-digital-au/babel-preset-app

Babel Preset for Deloitte Digital Projects

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
367
decreased by-27.18%
Maintainers
2
Weekly downloads
 
Created
Source

@deloitte-digital-au/babel-preset

Base Babel preset used by Deloitte Digital for our modern web apps.

If you are using our webpack-config package. This is already pre-installed, please read the main instructions to configure this package.

Installing

Prerequisite

To use, you will need to install the Babel cli:

npm install @babel/cli --save-dev 

You may also like to set it up for a tool of your choice.

Install @deloitte-digital-au/babel-preset

npm install @deloitte-digital-au/babel-preset-app --save-dev

Then create a .babelrc in the root of your project:

{
	"presets": ["@deloitte-digital-au/babel-preset-app"]
}

IMPORTANT: Please ensure you polyfill Object.assign for older browsers.

Adding Typing (Optional)

Adding Typescript

npm install @babel/preset-typescript --save-dev 

Then add the typescript preset to your .babelrc

{
	"presets": [
		"@deloitte-digital-au/babel-preset-app",
		"@babel/preset-typescript"
	]
}

Adding Flow

npm install  @babel/preset-flow --save-dev

Then add the flow preset to your .babelrc

{
	"presets": [
		"@deloitte-digital-au/babel-preset-app",
		"@babel/preset-flow"
	]
}

Keywords

FAQs

Package last updated on 26 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc