diff --git a/bin/templates/plugin/client/.babelrc b/bin/templates/plugin/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/bin/templates/plugin/client/.babelrc +++ b/bin/templates/plugin/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/client/.babelrc b/client/.babelrc index 87bd31a04..60be246eb 100644 --- a/client/.babelrc +++ b/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] -} +} \ No newline at end of file diff --git a/client/coral-embed/.babelrc b/client/coral-embed/.babelrc new file mode 100644 index 000000000..1b77acb76 --- /dev/null +++ b/client/coral-embed/.babelrc @@ -0,0 +1,15 @@ +{ + "presets": [ + "es2015" + ], + "plugins": [ + "add-module-exports", + "transform-class-properties", + "transform-decorators-legacy", + "transform-object-assign", + "transform-object-rest-spread", + "transform-async-to-generator", + "transform-react-jsx", + ["transform-runtime", {"polyfill": false}] + ] +} \ No newline at end of file diff --git a/docs/_docs/04-03-plugins-client.md b/docs/_docs/04-03-plugins-client.md index d3975913e..052b90873 100644 --- a/docs/_docs/04-03-plugins-client.md +++ b/docs/_docs/04-03-plugins-client.md @@ -325,8 +325,7 @@ While building your plugin you need to specify a `.eslintrc.json` file and a`.ba "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } ``` diff --git a/plugin-api/.babelrc b/plugin-api/.babelrc index 87bd31a04..63b1c53de 100644 --- a/plugin-api/.babelrc +++ b/plugin-api/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } diff --git a/plugins/talk-plugin-auth/client/.babelrc b/plugins/talk-plugin-auth/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-auth/client/.babelrc +++ b/plugins/talk-plugin-auth/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-comment-content/client/.babelrc b/plugins/talk-plugin-comment-content/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-comment-content/client/.babelrc +++ b/plugins/talk-plugin-comment-content/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-featured-comments/client/.babelrc b/plugins/talk-plugin-featured-comments/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-featured-comments/client/.babelrc +++ b/plugins/talk-plugin-featured-comments/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-featured-comments/client/components/.babelrc b/plugins/talk-plugin-featured-comments/client/components/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-featured-comments/client/components/.babelrc +++ b/plugins/talk-plugin-featured-comments/client/components/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-like/client/.babelrc b/plugins/talk-plugin-like/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-like/client/.babelrc +++ b/plugins/talk-plugin-like/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-love/client/.babelrc b/plugins/talk-plugin-love/client/.babelrc index f70104134..60be246eb 100644 --- a/plugins/talk-plugin-love/client/.babelrc +++ b/plugins/talk-plugin-love/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - ["transform-react-jsx": {"polyfill": false}], - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-offtopic/client/.babelrc b/plugins/talk-plugin-offtopic/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-offtopic/client/.babelrc +++ b/plugins/talk-plugin-offtopic/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-permalink/client/.babelrc b/plugins/talk-plugin-permalink/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-permalink/client/.babelrc +++ b/plugins/talk-plugin-permalink/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-respect/client/.babelrc b/plugins/talk-plugin-respect/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-respect/client/.babelrc +++ b/plugins/talk-plugin-respect/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file diff --git a/plugins/talk-plugin-viewing-options/client/.babelrc b/plugins/talk-plugin-viewing-options/client/.babelrc index 1b77acb76..60be246eb 100644 --- a/plugins/talk-plugin-viewing-options/client/.babelrc +++ b/plugins/talk-plugin-viewing-options/client/.babelrc @@ -9,7 +9,6 @@ "transform-object-assign", "transform-object-rest-spread", "transform-async-to-generator", - "transform-react-jsx", - ["transform-runtime", {"polyfill": false}] + "transform-react-jsx" ] } \ No newline at end of file