1.0.2 • Published 6 years ago

declarity-loader v1.0.2

Weekly downloads
5
License
MIT
Repository
-
Last release
6 years ago

declarity-loader

a webpack loader for Declarity

npm install --save-dev declarity-loader

Currently only webpack > 4 is supported.

Babel > 7 and Babel React Preset are currently dependencies used in the parsing of JSX syntax.

Example

/* In .babelrc */
{
  "presets": ["react"]
}

/* In webpack.config.js */
module.exports = {
    ...
    module: {
        rules: [{
            test: /\.js$/,
            use: ['babel-loader'],
            include: path.join(__dirname, 'src')
        }, {
            test: /\.dsx$/,
            use: ['babel-loader', 'declarity-loader'],
            include: path.join(__dirname, 'src/entities')
        }]
    },
    ...
}

In this example a new filetype, .dsx, is used to help distinguish how the different JSX should be parsed.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago