red-agate-react-host v0.5.0
RedAgate's react component host tag library
Install
$ npm install react --save
$ npm install react-dom --save
$ npm install red-agate --save
$ npm install red-agate-react-host --saveNote
To import this from your code, you need to use
babel+webpackand importred-agate-*/modules/*paths.
(We have used theimportstatements for doing the tree-shaking. Theimportstatements in the.jsnot the.mjsfiles cannot import from the vanilla node.js.)You can also import from the
.mjsfile on a node with the--experimental-modulesoption enabled.NOTICE:
Use withwebpack >= 5If you get the error:
Module not found: Error: Can't resolve '(importing/path/to/filename)' in '(path/to/node_modules/path/to/dirname)' Did you mean '(filename).js'?`Add following setting to your
webpack.config.js.{ test: /\.m?js/, resolve: { fullySpecified: false, }, },On
webpack >= 5, the extension in the request is mandatory for it to be fully specified if the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"'.
License
ISC
Copyright (c) 2017, Shellyl_N and Authors.
5 years ago
5 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago