Package Exports
- @kkt/loader-raw
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@kkt/loader-raw) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@kkt/loader-raw
A loader for webpack that allows importing files as a String. The .md file is loaded by default.
Usage in kkt Projects
npm install @kkt/loader-raw --save-devWith the loaderOneOf options
// .kktrc.js
export const loaderOneOf = [
// The .md file is loaded by default.
require.resolve('@kkt/loader-raw')
];or
// .kktrc.js
export const loaderOneOf = [
[require.resolve('@kkt/loader-raw'), {
ext: ['md', 'txt'],
esModule: false,
}]
];