1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Use babel-runtime instead of babel-polyfill.

This commit is contained in:
Drew Larson 2017-02-27 22:53:11 -06:00
parent 7c2df81c6a
commit e521abfa17
3 changed files with 7 additions and 5 deletions

View File

@ -60,7 +60,7 @@
{% endblock %}
{% block scripts %}
{% render_bundle 'babelPolyfill' %}
{# {% render_bundle 'babelPolyfill' %}#}
{% if DEBUG %}
{% render_bundle 'webpack' %}
{% endif %}

View File

@ -11,6 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"babel-runtime": "^6.23.0",
"isomorphic-fetch": "^2.2.1",
"js-cookie": "^2.1.3",
"json-loader": "^0.5.4",
@ -26,8 +27,10 @@
},
"devDependencies": {
"babel": "^6.5.2",
"babel-core": "^6.9.1",
"babel-loader": "^6.2.4",
"babel-cli": "^6.23.0",
"babel-core": "^6.23.1",
"babel-loader": "^6.3.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.22.0",
"babel-preset-latest": "^6.22.0",
"babel-preset-react": "^6.5.0",

View File

@ -1,7 +1,6 @@
const webpack = require('webpack');
const BundleTracker = require('webpack-bundle-tracker');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
require('babel-polyfill');
const config = require('./webpack.base.config.js');
@ -13,7 +12,6 @@ config.entry = {
],
signin: './assets/js/index',
members: './assets/js/members/index',
babelPolyfill: 'babel-polyfill',
bikes: './assets/js/bikes/index',
};
@ -38,6 +36,7 @@ config.module.loaders.push(
loader: 'babel-loader',
query: {
presets: ['latest', 'react', 'stage-3'],
plugins: ['transform-runtime'],
},
},
{