- Svelte 5: Compile
.svelte.xxx.js/ts
files
- Silence Svelte 5 version of unused CSS warning code if
emitCss
isfalse
- Support compiling
svelte.js/ts
files in Svelte 5 - Prevent crash when
css
isnull
in Svelte 5 (#216)
- Adjust inferred
css
option for Svelte 4
- Get ready for Svelte 4
- Forward options to
this.resolve
(#208)
- Warn if
svelte
export condition is missing (#206)
- Fix package resolution (#205)
- Resolve
package.json
files manually (#198)
- Preprocessor sourcemap support (#157)
- New minimum version requirements (#138, #142):
- Rollup 2+
- Svelte 3.5+ (Svelte 2 is no longer supported)
- Node 10+
- Breaking: Offload CSS handling to Rollup — you will now need an external plugin like
rollup-plugin-css-only
to extract your styles to.css
files as demonstrated in the template (#147) - Breaking: Options to be passed directly to the Svelte compiler must now go under a
compilerOptions
key in the plugin configuration object (#145) - Extend
CompileOptions
interface directly (#126) - Pass relative
filename
to svelte compiler (#131) - Link
sourcemap
with source correctly (#140) - Respect
sourcemapExcludeSources
Rollup config (#93) - Keep all sourcemaps from chunk (#44)
- Use
require('svelte/compiler')
rather thanrequire('svelte/compiler.js')
to work with new Svelte exports map
- feat: allow custom Svelte compilers via new
svelte
option: (#124) - fix: use native
fs.existsSync
method: (50e03e5
) - chore: Power CI via GitHub Action (
61ead9a..23e83a4
)
- Added default value to CssWriter.write map option (#135)
- Do not warn about missing unused css selectors if both css and emitCss are false (#127)
- Fix types to allow
css: false
(#125)
- Breaking changes:
- Rollup 1.19.2+ is now required
- The path passed to
css.write()
is now relative to the destination directory.
- Other changes:
- Actually publish typings (#110)
- Handle files with
.svelte
in the middle of their filename (#107)
- Revert accidental change to Rollup peer dependency
- Use Svelte 3's built-in logic for automatically determining the component name from its file path (#74)
- Support array of preprocessors in Svelte 3
- Handle
onwarn
correctly in new Svelte 3 beta
- Support latest Svelte 3 beta
- Use
this.addWatchFile
if present (#46)
2018-12-16
- Replace deprecated
ongenerate
hook, use Rollup's internal warning mechanism; requires [email protected]+ (#45)
- Pass
dependencies
through from preprocessors (#40)
- Support Svelte 3 alpha
- Internal reorganisation
- Remove deprecated
onerror
handler
- Append inline sourcemaps to virtual CSS files generated with
emitCss: true
(#36)
- Fix
emitCss
with style-less components (#34)
- Add
emitCss
option (#32)
- Support Svelte 1.60 and above (#29)
- Move
svelte
topeerDependencies
(#25)
- Pass ID as
filename
topreprocess
(#24)
- Allow
shared
option to override default (#16) - Use
this.warn
andthis.error
, so Rollup can handle failures
svelte
should be a dependency, not a devDependency...
- CSS sourcemaps (#14)
- Ignore virtual modules (#13)
- Only include
code
andmap
in object passed to Rollup
- Prevent import of built-in modules from blowing up the resolver
- Add support for
pkg.svelte
andpkg['svelte.root']
- Handle components without
<style>
tags when concatenating CSS
- Allow
options.css
to be a function that is called with extracted CSS when bundle is generated
- Pass all options through to Svelte (e.g.
dev
)
- Capitalize component names correctly
- Update Svelte
- Use shared helpers
- Sanitize constructor names
- Update Svelte
- Add support for
generate: 'ssr'
- Enforce
es
format
- Update Svelte
- Include code frame in error message
- Update Svelte
- Support
css
andfilename
options
- Update Svelte
- Update Svelte
- Update Svelte
- Set
options.name
to basename of file
- Update Svelte
- Update Svelte
- Install missing
rollup-pluginutils
dependency
- First release