yysun / apprun

AppRun is a JavaScript library for developing high-performance and reliable web applications using the elm inspired architecture, events and components.

Home Page:https://apprun.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Probably missing \ in SPA webpack.config.js regex

jkleiser opened this issue · comments

This issue is just about a tiny detail that may only confuse a "newbie" like me, but in my SPA (generated by npx apprun --init --spa) this line in webpack.config.js

{ test: /.tsx?$/, loader: 'ts-loader' },

should probably have been

{ test: /\.tsx?$/, loader: 'ts-loader' },

It seems to make no practical difference, though.

I cannot anylonger find info about how to create a SPA, npx apprun --init --spa, in your docs. What has happened?

It is still in the doc site: https://apprun.js.org/docs/#/01-start but missed out of README. I will add it back.

I just ran npx apprun --init --spa, and in the webpack.config.js of the project I got, I still see this line 15 with the missing \:

{ test: /.tsx?$/, loader: 'ts-loader' },

I'm also slightly confused by the fact that in the package.json of this new spa project I find

  "dependencies": {
    "apprun": "^2.22.2"
  },

When I check the Versions at https://www.npmjs.com/package/apprun, it looks like 2.22.2 is for es6, while 1.22.2 is for es5.