1.1.3 • Published 2 years ago

@shack-js/loader-fetch v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

loader-fetch

fetch loader for shack.js, it converts direct api function call into http fetch codes

shack.js doc here: https://github.com/shack-js/shack.js/blob/main/README.md

in case you want to use webpack rather than shack.js, here is a webpack config example:

module:{
  rules:[
    ...
    {
      test: /[\/|\\]apis[\/|\\].*\.((m|c)?jsx?|tsx?)$/,
      use: {
        loader: '@shack-js/loader-fetch',
        options: {
          apiPrefix: '/apis',
          backendFolder: 'apis',
          sourceType: 'module'
        }
      }
    }
1.1.1

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago