Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Feb 9, 2017
1 parent ccc6661 commit 6079e7e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Lint, type-check, compile, package and gzip JavaScript (ES6 + Flow static types + JSX), for the browser as well as
NodeJS; lint, compile, auto-prefix, minify and gzip SASS.

**[Project Home](https://github.com/thealjey/webcompiler) | [API Docs](https://thealjey.github.io/webcompiler) | [Discord]**
**[Project Home](https://github.com/thealjey/webcompiler) | [API Docs](https://thealjey.github.io/webcompiler) | [Changelog](https://github.com/thealjey/webcompiler/blob/master/CHANGELOG.md) | [Discord]**

[![Node.js](https://img.shields.io/node/v/webcompiler.svg)](https://www.npmjs.com/package/webcompiler)
[![Version](https://badge.fury.io/js/webcompiler.svg)](https://badge.fury.io/js/webcompiler)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Compiler.
<article><h1>webcompiler</h1><p><a href="https://nodei.co/npm/webcompiler/"><img src="https://nodei.co/npm/webcompiler.png?downloads=true&amp;downloadRank=true&amp;stars=true" alt="NPM"></a></p>
<p>Lint, type-check, compile, package and gzip JavaScript (ES6 + Flow static types + JSX), for the browser as well as
NodeJS; lint, compile, auto-prefix, minify and gzip SASS.</p>
<p><strong><a href="https://github.com/thealjey/webcompiler">Project Home</a> | <a href="https://thealjey.github.io/webcompiler">API Docs</a> | <a href="https://discord.gg/0blXIxApyTu9qXno">Discord</a></strong></p>
<p><strong><a href="https://github.com/thealjey/webcompiler">Project Home</a> | <a href="https://thealjey.github.io/webcompiler">API Docs</a> | <a href="https://github.com/thealjey/webcompiler/blob/master/CHANGELOG.md">Changelog</a> | <a href="https://discord.gg/0blXIxApyTu9qXno">Discord</a></strong></p>
<p><a href="https://www.npmjs.com/package/webcompiler"><img src="https://img.shields.io/node/v/webcompiler.svg" alt="Node.js"></a>
<a href="https://badge.fury.io/js/webcompiler"><img src="https://badge.fury.io/js/webcompiler.svg" alt="Version"></a>
<a href="https://travis-ci.org/thealjey/webcompiler"><img src="https://travis-ci.org/thealjey/webcompiler.svg?branch=master" alt="Build Status"></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/module-webpack.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ <h4 class="name" id=".babelFEOptions"><span class="type-signature">(static) </sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="webpack.js.html">webpack.js</a>, <a href="webpack.js.html#line59">line 59</a>
<a href="webpack.js.html">webpack.js</a>, <a href="webpack.js.html#line60">line 60</a>
</li></ul></dd>


Expand Down
8 changes: 7 additions & 1 deletion docs/webpack.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ <h1 class="page-title">webpack.js</h1>
* babelFEOptions.presets.push('my-custom-preset');
*/
export const babelBEOptions = {
babelrc: false,
presets: ['es2016', 'es2017', 'stage-2', 'react'],
plugins: [
['transform-es2015-modules-commonjs', {loose: true}]
Expand All @@ -110,8 +111,13 @@ <h1 class="page-title">webpack.js</h1>
*/
export const babelFEOptions = {
cacheDirectory: true,
babelrc: false,
presets: [
['es2015', {loose: true, modules: false}],
['es2015', {
// temporarily disabled until `webpack` 2.3 and `webpack-hot-loader` 3.0 are available
// modules: false,
loose: true
}],
'es2016', 'es2017', 'stage-2', 'react'
],
plugins: ['transform-runtime']
Expand Down
8 changes: 7 additions & 1 deletion lib/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const isProduction = exports.isProduction = 'production' === process.env.NODE_EN
* babelFEOptions.presets.push('my-custom-preset');
*/
const babelBEOptions = exports.babelBEOptions = {
babelrc: false,
presets: ['es2016', 'es2017', 'stage-2', 'react'],
plugins: [['transform-es2015-modules-commonjs', { loose: true }]]
};
Expand All @@ -87,7 +88,12 @@ const babelBEOptions = exports.babelBEOptions = {
*/
const babelFEOptions = exports.babelFEOptions = {
cacheDirectory: true,
presets: [['es2015', { loose: true, modules: false }], 'es2016', 'es2017', 'stage-2', 'react'],
babelrc: false,
presets: [['es2015', {
// temporarily disabled until `webpack` 2.3 and `webpack-hot-loader` 3.0 are available
// modules: false,
loose: true
}], 'es2016', 'es2017', 'stage-2', 'react'],
plugins: ['transform-runtime']
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"eslint-plugin-babel": "^4.0.1",
"eslint-plugin-flowtype": "^2.30.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-lodash": "^2.3.4",
"eslint-plugin-lodash": "^2.3.5",
"eslint-plugin-react": "^6.9.0",
"fb-watchman": "^2.0.0",
"flow-bin": "^0.37.4",
Expand Down

0 comments on commit 6079e7e

Please sign in to comment.