Skip to content

Commit

Permalink
remove babel syntax plugin no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Oct 2, 2020
1 parent 59d0c0c commit 5b8e4fc
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 40 deletions.
1 change: 0 additions & 1 deletion create-snowpack-app/app-scripts-preact/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}
]
],
"plugins": ["@babel/plugin-syntax-import-meta"],
"env": {
"development": {
"plugins": ["@prefresh/babel-plugin"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ module.exports = babelJest.createTransformer({
},
],
],
plugins: ["@babel/plugin-syntax-import-meta"],
});
1 change: 0 additions & 1 deletion create-snowpack-app/app-scripts-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"license": "MIT",
"dependencies": {
"@babel/core": "^7.10.5",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
Expand Down
1 change: 0 additions & 1 deletion create-snowpack-app/app-template-preact/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}
]
],
"plugins": ["@babel/plugin-syntax-import-meta"],
"env": {
"development": {
"plugins": ["@prefresh/babel-plugin"]
Expand Down
1 change: 0 additions & 1 deletion create-snowpack-app/app-template-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"preact": "^10.4.6"
},
"devDependencies": {
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@prefresh/babel-plugin": "^0.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"react-dom": "^16.13.1"
},
"devDependencies": {
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@snowpack/app-scripts-react": "^1.11.0",
Expand Down
1 change: 0 additions & 1 deletion create-snowpack-app/app-template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"react-dom": "^16.13.1"
},
"devDependencies": {
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@snowpack/app-scripts-react": "^1.11.0",
"@snowpack/plugin-dotenv": "^2.0.1",
Expand Down
1 change: 0 additions & 1 deletion snowpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"snowpack": "index.bin.js"
},
"dependencies": {
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@snowpack/plugin-build-script": "^2.0.7",
"@snowpack/plugin-run-script": "^2.1.3",
"cacache": "^15.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7506,26 +7506,26 @@ document.head.appendChild(styleEl);"
`;

exports[`create-snowpack-app app-template-react: _dist_/App.js 1`] = `
"import React, { useState } from '../web_modules/react.js';
import logo from './logo.svg.proxy.js';
import './App.css.proxy.js';
function App() {
return /*#__PURE__*/React.createElement(\\"div\\", {
"import React, {useState} from \\"../web_modules/react.js\\";
import logo2 from \\"./logo.svg.proxy.js\\";
import \\"./App.css.proxy.js\\";
function App2() {
return /* @__PURE__ */ React.createElement(\\"div\\", {
className: \\"App\\"
}, /*#__PURE__*/React.createElement(\\"header\\", {
}, /* @__PURE__ */ React.createElement(\\"header\\", {
className: \\"App-header\\"
}, /*#__PURE__*/React.createElement(\\"img\\", {
src: logo,
}, /* @__PURE__ */ React.createElement(\\"img\\", {
src: logo2,
className: \\"App-logo\\",
alt: \\"logo\\"
}), /*#__PURE__*/React.createElement(\\"p\\", null, \\"Edit \\", /*#__PURE__*/React.createElement(\\"code\\", null, \\"src/App.jsx\\"), \\" and save to reload.\\"), /*#__PURE__*/React.createElement(\\"a\\", {
}), /* @__PURE__ */ React.createElement(\\"p\\", null, \\"Edit \\", /* @__PURE__ */ React.createElement(\\"code\\", null, \\"src/App.jsx\\"), \\" and save to reload.\\"), /* @__PURE__ */ React.createElement(\\"a\\", {
className: \\"App-link\\",
href: \\"https://reactjs.org\\",
target: \\"_blank\\",
rel: \\"noopener noreferrer\\"
}, \\"Learn React\\")));
}
export default App;"
export default App2;"
`;

exports[`create-snowpack-app app-template-react: _dist_/index.css 1`] = `
Expand Down Expand Up @@ -7556,12 +7556,11 @@ document.head.appendChild(styleEl);"
exports[`create-snowpack-app app-template-react: _dist_/index.js 1`] = `
"import __SNOWPACK_ENV__ from '../__snowpack__/env.js';
import.meta.env = __SNOWPACK_ENV__;
import React from '../web_modules/react.js';
import ReactDOM from '../web_modules/react-dom.js';
import App from './App.js';
import './index.css.proxy.js';
ReactDOM.render( /*#__PURE__*/React.createElement(React.StrictMode, null, /*#__PURE__*/React.createElement(App, null)), document.getElementById('root')); // Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
// Learn more: https://www.snowpack.dev/#hot-module-replacement
import React from \\"../web_modules/react.js\\";
import ReactDOM from \\"../web_modules/react-dom.js\\";
import App2 from \\"./App.js\\";
import \\"./index.css.proxy.js\\";
ReactDOM.render(/* @__PURE__ */ React.createElement(React.StrictMode, null, /* @__PURE__ */ React.createElement(App2, null)), document.getElementById(\\"root\\"));
if (import.meta.hot) {
import.meta.hot.accept();
}"
Expand Down Expand Up @@ -8021,26 +8020,26 @@ document.head.appendChild(styleEl);"
`;

exports[`create-snowpack-app app-template-react-typescript: _dist_/App.js 1`] = `
"import React from '../web_modules/react.js';
import logo from './logo.svg.proxy.js';
import './App.css.proxy.js';
function App({}) {
return /*#__PURE__*/React.createElement(\\"div\\", {
"import React from \\"../web_modules/react.js\\";
import logo2 from \\"./logo.svg.proxy.js\\";
import \\"./App.css.proxy.js\\";
function App2({}) {
return /* @__PURE__ */ React.createElement(\\"div\\", {
className: \\"App\\"
}, /*#__PURE__*/React.createElement(\\"header\\", {
}, /* @__PURE__ */ React.createElement(\\"header\\", {
className: \\"App-header\\"
}, /*#__PURE__*/React.createElement(\\"img\\", {
src: logo,
}, /* @__PURE__ */ React.createElement(\\"img\\", {
src: logo2,
className: \\"App-logo\\",
alt: \\"logo\\"
}), /*#__PURE__*/React.createElement(\\"p\\", null, \\"Edit \\", /*#__PURE__*/React.createElement(\\"code\\", null, \\"src/App.tsx\\"), \\" and save to reload.\\"), /*#__PURE__*/React.createElement(\\"a\\", {
}), /* @__PURE__ */ React.createElement(\\"p\\", null, \\"Edit \\", /* @__PURE__ */ React.createElement(\\"code\\", null, \\"src/App.tsx\\"), \\" and save to reload.\\"), /* @__PURE__ */ React.createElement(\\"a\\", {
className: \\"App-link\\",
href: \\"https://reactjs.org\\",
target: \\"_blank\\",
rel: \\"noopener noreferrer\\"
}, \\"Learn React\\")));
}
export default App;"
export default App2;"
`;

exports[`create-snowpack-app app-template-react-typescript: _dist_/index.css 1`] = `
Expand Down Expand Up @@ -8071,12 +8070,11 @@ document.head.appendChild(styleEl);"
exports[`create-snowpack-app app-template-react-typescript: _dist_/index.js 1`] = `
"import __SNOWPACK_ENV__ from '../__snowpack__/env.js';
import.meta.env = __SNOWPACK_ENV__;
import React from '../web_modules/react.js';
import ReactDOM from '../web_modules/react-dom.js';
import App from './App.js';
import './index.css.proxy.js';
ReactDOM.render( /*#__PURE__*/React.createElement(React.StrictMode, null, /*#__PURE__*/React.createElement(App, null)), document.getElementById('root')); // Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
// Learn more: https://www.snowpack.dev/#hot-module-replacement
import React from \\"../web_modules/react.js\\";
import ReactDOM from \\"../web_modules/react-dom.js\\";
import App2 from \\"./App.js\\";
import \\"./index.css.proxy.js\\";
ReactDOM.render(/* @__PURE__ */ React.createElement(React.StrictMode, null, /* @__PURE__ */ React.createElement(App2, null)), document.getElementById(\\"root\\"));
if (import.meta.hot) {
import.meta.hot.accept();
}"
Expand Down

0 comments on commit 5b8e4fc

Please sign in to comment.