Git Product home page Git Product logo

Comments (9)

larixer avatar larixer commented on June 19, 2024 1

@msaspence Should be supported in [email protected] and later

from create-apollo-app.

msaspence avatar msaspence commented on June 19, 2024
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.

msaspence avatar msaspence commented on June 19, 2024

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.

larixer avatar larixer commented on June 19, 2024

@msaspence Yeah, you are right, I'm going to look and perhaps fix this today

from create-apollo-app.

veeramarni avatar veeramarni commented on June 19, 2024

@Vlasenko

I think this change breaking for me.

image

from create-apollo-app.

larixer avatar larixer commented on June 19, 2024

@veeramarni Pushed several fixes, could you check if [email protected] works for you?

from create-apollo-app.

veeramarni avatar veeramarni commented on June 19, 2024

@Vlasenko I don't see v0.4.26 in npm

$ npm view spinjs version
0.4.25

from create-apollo-app.

larixer avatar larixer commented on June 19, 2024

@veeramarni Sorry, forgot to publish. Now it is there!

from create-apollo-app.

veeramarni avatar veeramarni commented on June 19, 2024

@Vlasenko it works fine now.

from create-apollo-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.