- Update devDependencies.
- #14: fix (this.warn is not a function) - thanks to @leptonix
- markdown-lint errors
Mostly internal changes
- Add
Promise
,Object
andSymbol
to the predefined globals.
- This version requires node.js 6 or later.
- Deprecate the
local
option as the plugin passes all the options to static templates. - Hide the internal
runtimeImport
variable. - Revision of the
transform
method, add comments. - Avoid type coersion (allows Typescript error detection).
- Unused
assign
function, now the plugin uses object spread. - Removed the ES6 version, seems rollup does not use it.
- Typescript definitions
- Watch the included files in static templates.
- AppVeyor tests.
- peerDependencies has rollup>=0.61 to allow dependency detection (see Rollup #2259)
- Updated devDependencies
- Now the development of this plugin uses rollup v0.66 and Typescript v3.0
- Dependency on rollup-plugin-buble as Rollup does not depends on it.
- Updated devDependencies.
- Fixes package installation.
- A custom runtime can be set through the
pugRuntime
option. pugRuntime: false
avoids importation of the pug-runtime.
- The pug option
inlineRuntimeFunctions
is honored and the runtime is not imported.
- Support for ES6
import
statements in one-line unbuffered code (starting with dash).
- Pug
render
method is used insteadcompile
and receiveslocals
and all the plugin options as parameter, so_pug_options
is not used anymore (thanks to @StreetStrider).
- For static compilation, all the compiler options are passed through the
_pug_options
value to the template.
- Using the lastest Pug version.
- Updated devDependencies.
- Minor fix to
compileDebug
forced totrue
on source map generation.
sourceMap
is enabled without thecompileDebug
, regression of this option tofalse
.- Updated gen-pug-source-map devDependency to v0.1.1, almost ready for production.
Complete rewrite, WIP
- Experimental support for source maps.
- Now the plugin imports an internal version of the pug-runtime if is necessary, so you don't have to worry about this anymore.
- The new property
locals
is a plain JavaScript object with values passed to the compiler for static compilation. - The new property
staticPattern
is a regex that matches filenames to compile and evaluate at build time to produce plain HTML, so the loading of templates is faster, useful in SSR.
- The
basedir
option defaults to the absolute path of your rollupentry
file. - Files from the
extend
andinclude
directives are imported by the template, so changes in this dependencies must update the template in watch mode - See issue #3.
- Initial release