Skip to content

loong-js/loong-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

About

This is lsx loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors