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

Move gatsby-module-loader to it's own package #1901

Merged
merged 4 commits into from
Aug 24, 2017
Merged
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
6 changes: 6 additions & 0 deletions packages/gatsby-module-loader/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
["../../.babelrc.js", { "browser": true }]
]
}

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
/*.js
2 changes: 2 additions & 0 deletions packages/gatsby-module-loader/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src
flow-typed
19 changes: 19 additions & 0 deletions packages/gatsby-module-loader/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "gatsby-module-loader",
"version": "1.0.0",
"description": "_Based on https://github.com/webpack/bundle-loader and https://github.com/NekR/async-module-loader_",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"license": "MIT",
"dependencies": {
"loader-utils": "^0.2.16"
},
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"friendly-errors-webpack-plugin": "^1.6.1",
"front-matter": "^2.1.0",
"fs-extra": "^3.0.1",
"gatsby-module-loader": "^1.0.0",
"glob": "^7.1.1",
"graphql": "^0.10.3",
"graphql-relay": "^0.5.1",
Expand All @@ -65,7 +66,6 @@
"json-loader": "^0.5.2",
"json-stringify-safe": "^5.0.1",
"json5": "^0.5.0",
"loader-utils": "^0.2.16",
"lodash": "^4.17.4",
"lodash-id": "^0.14.0",
"lowdb": "^0.16.2",
Expand Down
11 changes: 0 additions & 11 deletions packages/gatsby/src/loaders/gatsby-module-loader/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { store } = require(`../redux`)
const debug = require(`debug`)(`gatsby:webpack-config`)
const WebpackMD5Hash = require(`webpack-md5-hash`)
const ChunkManifestPlugin = require(`chunk-manifest-webpack-plugin`)
const GatsbyModulePlugin = require(`../loaders/gatsby-module-loader/plugin`)
const GatsbyModulePlugin = require(`gatsby-module-loader/plugin`)
const genBabelConfig = require(`./babel-config`)
const { withBasePath } = require(`./path`)
const HashedChunkIdsPlugin = require(`./hashed-chunk-ids-plugin`)
Expand Down