@loong-js/loong-loader

0.0.1 • Public • Published

@loong-js/loong-loader

This is lsx loader.

📦 Installation

npm install --save-dev @loong-js/loong-loader

🔨 Usage

const otherRules = [
  ...
];
const webpackOptions = {
  ...
  module: {
    rules: [
      {
        test: /\.jsx?/,
        exclude: /node_modules/,
        use: [
          // Parsing JSX requires putting Loong loader at the end
          '@loong-js/loong-loader',
          ...otherRules
        ],
      },
      {
        test: /\.lsx/,
        exclude: /node_modules/,
        use: [
          ...otherRules,
          // To parse LSX, you need to put Loong loader in the first place to convert it to the correct LSX format
          '@loong-js/loong-loader',
        ],
      },
    ],
  },
  ...
}

🐛 Issues

If you find a bug, please file an issue on our issue tracker on GitHub.

🏁 Changelog

Changes are tracked in the CHANGELOG.md.

📄 License

loong-loader is available under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @loong-js/loong-loader

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.81 kB

Total Files

9

Last publish

Collaborators

  • shenchang