1.1.3 • Published 4 years ago

@shack-js/loader-fetch v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.1.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago