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

Add support for ie9+ (For Preview) #286

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@
"dependencies": {
"babel-core": "6.18.2",
"babel-loader": "6.2.7",
"babel-polyfill": "^6.20.0",
"babel-preset-es2015": "6.18.0",
"babel-preset-react": "6.16.0",
"babel-preset-stage-0": "6.16.0",
"buble": "~0.14.2",
"babel-standalone": "^6.21.1",
"chalk": "1.1.3",
"classnames": "2.2.5",
"codemirror": "5.20.2",
"common-dir": "^1.0.0",
"css-loader": "0.25.0",
"entities": "1.1.1",
"eventsource-polyfill": "^0.9.6",
"express": "4.14.0",
"findup": "0.1.5",
"glob": "7.1.1",
Expand Down
2 changes: 2 additions & 0 deletions scripts/make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ module.exports = function(config, env) {
else {
webpackConfig = merge(webpackConfig, {
entry: [
'babel-polyfill',
'eventsource-polyfill',
'webpack-hot-middleware/client',
entryScript,
],
Expand Down
4 changes: 2 additions & 2 deletions src/rsg-components/Preview/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { transform } from 'buble';
import { transform } from 'babel-standalone';
import PlaygroundError from 'rsg-components/PlaygroundError';
import Wrapper from 'rsg-components/Wrapper';

const compileCode = code => transform(code, {
objectAssign: 'Object.assign',
presets: ['es2015', 'react', 'stage-0'],
}).code;

export default class Preview extends Component {
Expand Down
50 changes: 21 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ acorn-jsx@^3.0.0, acorn-jsx@^3.0.1:
dependencies:
acorn "^3.0.4"

acorn-object-spread@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/acorn-object-spread/-/acorn-object-spread-1.0.0.tgz#48ead0f4a8eb16995a17a0db9ffc6acaada4ba68"
dependencies:
acorn "^3.1.0"

acorn@^3.0.4, acorn@^3.1.0, acorn@^3.3.0:
acorn@^3.0.4:
version "3.3.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a"

Expand Down Expand Up @@ -1035,6 +1029,14 @@ babel-plugin-transform-strict-mode@^6.18.0:
babel-runtime "^6.0.0"
babel-types "^6.18.0"

babel-polyfill@^6.20.0:
version "6.20.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.20.0.tgz#de4a371006139e20990aac0be367d398331204e7"
dependencies:
babel-runtime "^6.20.0"
core-js "^2.4.0"
regenerator-runtime "^0.10.0"

babel-preset-es2015@6.18.0, babel-preset-es2015@^6.3.13:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.18.0.tgz#b8c70df84ec948c43dcf2bf770e988eb7da88312"
Expand Down Expand Up @@ -1130,6 +1132,10 @@ babel-runtime@^6.0.0, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtim
core-js "^2.4.0"
regenerator-runtime "^0.10.0"

babel-standalone@^6.21.1:
version "6.21.1"
resolved "https://registry.yarnpkg.com/babel-standalone/-/babel-standalone-6.21.1.tgz#f508999f6e3285adcf0dd64f9153e0d500d445f0"

babel-template@^6.14.0, babel-template@^6.15.0, babel-template@^6.16.0, babel-template@^6.7.0, babel-template@^6.8.0:
version "6.16.0"
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.16.0.tgz#e149dd1a9f03a35f817ddbc4d0481988e7ebc8ca"
Expand Down Expand Up @@ -1315,18 +1321,6 @@ browserslist@~1.5.1:
dependencies:
caniuse-db "^1.0.30000601"

buble@~0.14.2:
version "0.14.3"
resolved "https://registry.yarnpkg.com/buble/-/buble-0.14.3.tgz#678cb1fc24dc90e5ada047deaa5ddc6f6da8983e"
dependencies:
acorn "^3.3.0"
acorn-jsx "^3.0.1"
acorn-object-spread "^1.0.0"
chalk "^1.1.3"
magic-string "^0.14.0"
minimist "^1.2.0"
os-homedir "^1.0.1"

buf-compare@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/buf-compare/-/buf-compare-1.0.1.tgz#fef28da8b8113a0a0db4430b0b6467b69730b34a"
Expand Down Expand Up @@ -2389,6 +2383,10 @@ es6-map@^0.1.3:
es6-symbol "~3.1.0"
event-emitter "~0.3.4"

es6-object-assign@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/es6-object-assign/-/es6-object-assign-1.0.3.tgz#40a192e0fda5ee44ee8cf6f5b5d9b47cd0f69b14"

es6-set@~0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.4.tgz#9516b6761c2964b92ff479456233a247dc707ce8"
Expand Down Expand Up @@ -2558,6 +2556,10 @@ events@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"

eventsource-polyfill@^0.9.6:
version "0.9.6"
resolved "https://registry.yarnpkg.com/eventsource-polyfill/-/eventsource-polyfill-0.9.6.tgz#10e0d187f111b167f28fdab918843ce7d818f13c"

evp_bytestokey@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.0.tgz#497b66ad9fef65cd7c08a6180824ba1476b66e53"
Expand Down Expand Up @@ -4164,12 +4166,6 @@ macaddress@^0.2.8:
version "0.2.8"
resolved "https://registry.yarnpkg.com/macaddress/-/macaddress-0.2.8.tgz#5904dc537c39ec6dbefeae902327135fa8511f12"

magic-string@^0.14.0:
version "0.14.0"
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.14.0.tgz#57224aef1701caeed273b17a39a956e72b172462"
dependencies:
vlq "^0.2.1"

magicpen-prism@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/magicpen-prism/-/magicpen-prism-2.2.1.tgz#90a224968b512f769506dc65188995821681b631"
Expand Down Expand Up @@ -6712,10 +6708,6 @@ vfile@^2.0.0:
unist-util-stringify-position "^1.0.0"
x-is-string "^0.1.0"

vlq@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.1.tgz#14439d711891e682535467f8587c5630e4222a6c"

vm-browserify@0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73"
Expand Down