Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to fix IE 11 compatibility #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions app/javascript/app/app.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'babel-polyfill';
import 'whatwg-fetch';

import 'cw-components/dist/main.css';

import React from 'react';
Expand All @@ -14,12 +16,8 @@ const App = ({ data }) => (
</Provider>
);

App.propTypes = {
data: PropTypes.object
};
App.propTypes = { data: PropTypes.object };

App.defaultProps = {
data: {}
};
App.defaultProps = { data: {} };

export default App;
2 changes: 1 addition & 1 deletion app/javascript/app/router/router.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { connectRoutes, NOT_FOUND, redirect } from 'redux-first-router';
import createHistory from 'history/createBrowserHistory';
import queryString from 'query-string';
import queryString from 'qs';

import NationalSections from './sections/national-circumstances';
import GHGSections from './sections/ghg-emissions';
Expand Down
8 changes: 4 additions & 4 deletions config/webpack/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const entry = packPaths.reduce(
(map, entryParam) => {
const localMap = map;
const namespace = relative(join(entryPath), dirname(entryParam));
localMap[join(
namespace,
basename(entryParam, extname(entryParam))
)] = resolve(entryParam);
localMap[join(namespace, basename(entryParam, extname(entryParam)))] = [
'babel-polyfill',
resolve(entryParam)
];
return localMap;
},
{}
Expand Down
Loading