Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (30 sloc) 855 Bytes
---
id: babel-plugin-syntax-export-default-from
title: @babel/plugin-syntax-export-default-from
sidebar_label: syntax-export-default-from
---

Syntax only

It's unlikely you want to use this plugin directly as it only enables Babel to parse this syntax. Instead, use plugin-proposal-export-default-from to both parse and transform this syntax.

Installation

npm install --save-dev @babel/plugin-syntax-export-default-from

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@babel/plugin-syntax-export-default-from"]
}

Via CLI

babel --plugins @babel/plugin-syntax-export-default-from script.js

Via Node API

require("@babel/core").transform("code", {
  plugins: ["@babel/plugin-syntax-export-default-from"]
});
You can’t perform that action at this time.