@njt-tools-open/solidjs-component-markdown-loader
v1.0.3
Published
Solidjs markdown file loader
Downloads
2
Maintainers
Readme
@njt-tools-open/solidjs-component-markdown-loader
Usage
Install
npm install @njt-tools-open/solidjs-component-markdown-loader -D
# or
pnpm install @njt-tools-open/solidjs-component-markdown-loader -D
# or
yarn install @njt-tools-open/solidjs-component-markdown-loader -D
Webpack config
// webpack.config.js
module.exports = {
// ...
module: {
rules: [
{
test: /\.md$/,
use: [
{
loader: 'babel-loader',
options: {
babelrc: false,
configFile: false,
presets: [
'@babel/preset-env',
'babel-preset-solid',
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
],
},
},
'@njt-tools-open/solidjs-component-markdown-loader',
],
},
],
},
};