Skip to content

Commit

Permalink
chore: .mjs project cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi authored and nodkz committed Dec 30, 2019
1 parent 4cc470b commit 20c6eeb
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 36 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/es
/lib
/node8
/mjs
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PROJECT_ROOT>/lib/.*
<PROJECT_ROOT>/es/.*
<PROJECT_ROOT>/node8/.*
<PROJECT_ROOT>/mjs/.*
.*/node_modules/ajv.*
.*/node_modules/acorn.*
.*/node_modules/async.*
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ node_modules
/es
/lib
/node8
/mjs

coverage
.nyc_output
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@ OR
npm install react-relay-network-modern --save
```

If using with Webpack 4, make sure that you're equipped to parse .mjs files correctly. (If using Webpack 3, can omit the `module` definition.)

```javascript
module: {
rules: [
// See: https://github.com/aws/aws-amplify/issues/686#issuecomment-387710340
{
test: /\.mjs$/,
include: /node_modules\/react-relay-network-modern/,
type: 'javascript/auto',
},
]
},
resolve: {
extensions: ['.mjs', '.js']
}
```

### What if `regeneratorRuntime is not defined`?

<img width="493" alt="screen shot 2018-02-20 at 20 07 45" src="https://user-images.githubusercontent.com/1946920/36428334-da402a6e-1679-11e8-9897-7e730ab3123e.png">
Expand Down
15 changes: 0 additions & 15 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,6 @@ module.exports = {
es: {
plugins: ['@babel/plugin-proposal-class-properties'],
},
mjs: {
plugins: ['@babel/plugin-proposal-class-properties'],
presets: [
[
'@babel/preset-env',
{
targets: {
browsers: ['last 5 versions', 'ie 9', 'defaults'],
},
loose: true,
modules: false,
},
],
],
},
node8: {
presets: [
[
Expand Down

0 comments on commit 20c6eeb

Please sign in to comment.