Skip to content

Commit

Permalink
fix: change the default value of the mapContent option
Browse files Browse the repository at this point in the history
  • Loading branch information
billowz committed Jun 20, 2019
1 parent 72122be commit 9eceb53
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ keepLines | boolean | Preserves the empty lines of directives and blo
mapHires | boolean | Make a hi-res source-map, if `sourceMap:true` (the default).<br>**Default** `true`
prefixes | string &vert; RegExp &vert;<br>Array&lt;string&vert;RegExp&gt; | The start of a directive. That is the characters before the '#', usually the start of comments.<br>**Default** `['//', '/*', '<!--']` (with one optional space after them).
sourcemap | boolean | Must include a sourcemap?<br>Should be the same value as the property `sourcemap` of the Rollup output.<br>**Default** `true`
mapContent | boolean | Include the original source in the sourcemap?<br>**Default** `false`
mapContent | boolean | Include the original source in the sourcemap, if `sourceMap:true` (the default).<br>**Default** `true`
values | object | Plain object defining the variables used by jscc during the preprocessing.<br>**Default** `{}`
extensions | string &vert; Array&lt;string&gt; | Array of strings that specifies the file extensions to process.<br>**Default** `['js', 'jsx', 'ts', 'tsx', 'tag']`
include | string &vert; Array&lt;string&gt; | [minimatch](https://github.com/isaacs/minimatch) or array of minimatch patterns for paths that must be included in the processing.
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ declare namespace jsccPlugin {

/**
* Include the original source in the sourcemap
* @default false
* @default true
*/
mapContent?: boolean;

Expand Down
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/proc-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const _getJsccOpts = (opts) => ({
mapHires: opts.mapHires,
prefixes: opts.prefixes,
sourceMap: opts.sourceMap,
mapContent: opts.mapContent,
mapContent: opts.mapContent !== false,
values: Object.assign({}, opts.values),
})

Expand Down

0 comments on commit 9eceb53

Please sign in to comment.