Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const loaderConfig = {
bundle: false,
warnings: true,
watch: false, // indicates if webpack is in watch mode
output: 'output',
output: 'output', // if not specified and spago = true, then as reported by `spago path output`
src: [
path.join('src', '**', '*.purs'),
// if pscPackage = true
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = function purescriptLoader(source, map) {
}
})(loaderOptions.pscPackage, loaderOptions.spago);

const outputPath = loaderOptions.spago ? getSpagoSources() : 'output'
const outputPath = loaderOptions.output || (loaderOptions.spago ? getSpagoSources() : 'output')

const options = Object.assign({
context: webpackContext,
Expand Down