Comments (9)
@msaspence Should be supported in [email protected]
and later
from create-apollo-app.
web = { entry:
{ index:
[ 'babel-polyfill',
'webpack-hot-middleware/client',
'./src/client/index.jsx' ] },
name: 'web',
devtool: '#cheap-module-source-map',
module:
{ rules:
[ { test: /\.(png|ico|jpg|xml)$/,
use:
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/url-loader/index.js',
options: { name: '[hash].[ext]', limit: 100000 } } },
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
use:
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/url-loader/index.js',
options: { name: './assets/[hash].[ext]', limit: 100000 } } },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
use:
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/file-loader/dist/cjs.js',
options: { name: './assets/[hash].[ext]' } } },
{ test: /\.scss$/,
use:
[ { loader: '/Users/msaspence/Projects/timeteam/node_modules/style-loader/index.js' },
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/css-loader/index.js',
options: { sourceMap: true, importLoaders: 1 } },
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/postcss-loader/lib/index.js',
options: { sourceMap: true } },
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/sass-loader/lib/loader.js',
options: { sourceMap: true } } ] },
{ test: /\.less$/,
use:
[ { loader: '/Users/msaspence/Projects/timeteam/node_modules/style-loader/index.js' },
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/css-loader/index.js',
options: { sourceMap: true, importLoaders: 1 } },
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/postcss-loader/lib/index.js',
options: { sourceMap: true } },
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/less-loader/dist/cjs.js',
options: { sourceMap: true } } ] },
{ test: /\.graphqls/,
use: '/Users/msaspence/Projects/timeteam/node_modules/raw-loader/index.js' },
{ test: /\.(graphql|gql)$/,
exclude: /node_modules/,
use: [ '/Users/msaspence/Projects/timeteam/node_modules/graphql-tag/loader.js' ] },
{ test: /\.tsx?$/,
use:
{ loader: '/Users/msaspence/Projects/timeteam/node_modules/babel-loader/lib/index.js',
options:
{ cacheDirectory: true,
presets:
[ '/Users/msaspence/Projects/timeteam/node_modules/babel-preset-react/lib/index.js',
[ '/Users/msaspence/Projects/timeteam/node_modules/babel-preset-es2015/lib/index.js',
{ modules: false } ],
'/Users/msaspence/Projects/timeteam/node_modules/babel-preset-stage-0/lib/index.js' ],
plugins:
[ '/Users/msaspence/Projects/timeteam/node_modules/babel-plugin-transform-runtime/lib/index.js',
'/Users/msaspence/Projects/timeteam/node_modules/babel-plugin-transform-decorators-legacy/lib/index.js',
'/Users/msaspence/Projects/timeteam/node_modules/babel-plugin-transform-class-properties/lib/index.js',
[ '/Users/msaspence/Projects/timeteam/node_modules/babel-plugin-tcomb/lib/index.js' ],
[ '/Users/msaspence/Projects/timeteam/node_modules/babel-plugin-styled-components/lib/index.js',
{ ssr: false } ] ],
only: [ '*.tsx', '*.ts', '*.jsx', '*.js' ] } },
exclude: /node_modules/ },
{ test: /\.html$/,
loader: '/Users/msaspence/Projects/timeteam/node_modules/html-loader/index.js' } ] },
resolve:
{ modules:
[ '/Users/msaspence/Projects/timeteam/node_modules',
'node_modules' ],
extensions:
[ '.web.tsx',
'.web.ts',
'.web.jsx',
'.web.js',
'.tsx',
'.ts',
'.jsx',
'.js' ] },
watchOptions: { ignored: /build/ },
bail: false,
plugins:
[ NamedModulesPlugin { options: {} },
HotModuleReplacementPlugin {
options: {},
multiStep: undefined,
fullBuildTimeout: 200,
requestTimeout: 10000 },
NoEmitOnErrorsPlugin {},
DefinePlugin {
definitions:
{ __CLIENT__: true,
__SERVER__: false,
__SSR__: false,
__DEV__: true,
'process.env.NODE_ENV': '"development"',
__BACKEND_URL__: '"https://api.graph.cool/simple/v1/cj9g5d8nl7gtt0120v8uj493r"' } },
ManifestPlugin {
opts:
{ basePath: '',
publicPath: '',
fileName: 'assets.json',
stripSrc: null,
transformExtensions: /^(gz|map)$/i,
writeToFileEmit: false,
cache: null,
seed: null,
filter: null,
map: null,
reduce: null } },
HtmlWebpackPlugin {
options:
{ template: '/Users/msaspence/Projects/timeteam/node_modules/spinjs/html-plugin-template.ejs',
filename: 'index.html',
hash: false,
inject: 'body',
compile: true,
favicon: false,
minify: false,
cache: true,
showErrors: true,
chunks: 'all',
excludeChunks: [],
title: 'Webpack App',
xhtml: false } },
DefinePlugin { definitions: { __PERSIST_GQL__: false } },
PersistGraphQLPlugin {
options: { moduleName: '/Users/msaspence/Projects/timeteam/node_modules/persisted_queries.json' },
_listeners: [],
virtualModules: VirtualModulesPlugin { _staticModules: undefined } },
CheckerPlugin {} ],
node: { fs: 'empty', net: 'empty', tls: 'empty' },
output:
{ filename: '[name].[hash].js',
path: '/Users/msaspence/Projects/timeteam/build/client/web',
publicPath: '/' },
devServer:
{ hot: true,
contentBase: '/',
publicPath: '/',
headers: { 'Access-Control-Allow-Origin': '*' },
quiet: false,
noInfo: true,
historyApiFallback: true,
stats: { colors: true, chunkModules: false },
port: 3000,
proxy: false } }
from create-apollo-app.
Am no expect in web pack but looks like the offender is:
test: /\.tsx?$/
prevents jsx being transpiled and forces you to tsx
everything*, this makes transitioning to TypeScript a bit of a pain.
* I think
from create-apollo-app.
@msaspence Yeah, you are right, I'm going to look and perhaps fix this today
from create-apollo-app.
I think this change breaking for me.
from create-apollo-app.
@veeramarni Pushed several fixes, could you check if [email protected]
works for you?
from create-apollo-app.
@Vlasenko I don't see v0.4.26 in npm
$ npm view spinjs version
0.4.25
from create-apollo-app.
@veeramarni Sorry, forgot to publish. Now it is there!
from create-apollo-app.
@Vlasenko it works fine now.
from create-apollo-app.
Related Issues (20)
- backendUrl vs __BACKEND_URL__ clarification HOT 1
- node externals for backend HOT 9
- server restart when webpack throws warning [HMR] Cannot find update. HOT 2
- when using react-hot-loader and typescript throws errors HOT 4
- Problem with lack of extra option support for CSS/LESS loaders HOT 2
- docker question HOT 1
- external plugins HOT 1
- New Logo/Icon HOT 1
- Error: spawn yarnpkg ENOENT (windows) HOT 5
- using npm library in babelrc HOT 8
- spin error WebpackOptionsValidationError HOT 2
- Yarn errors when trying to create a React app HOT 1
- Storybook HOT 1
- [Enhancement] support for Docker
- error package.json: Name contains illegal characters HOT 1
- Drop GraphiQL in favor of already integrated playground? HOT 4
- error Cannot create "/usr/local/bin/create-apollo-app" due to insufficient permissions. HOT 2
- upgrade the expo dependencies
- Add .gitignore to scaffolding process HOT 3
- Fresh install no matter what type of app I create gets error envelope routines unsupported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-apollo-app.