You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests are very complex and debugging is harder due to we having to read output from stdout
Now the Babel plugin writes the CSS as a comment in the file and the webpack loader write the actual files, which avoids all these issues, makes tests significantly simpler.
Sourcemap support - Users can jump to the JS file where the style was declared from devtools
Proper dependency tracking - The babel plugin can output the dependency list so that the webpack loader can properly mark the dependencies for the file
A simplified module system - Previously the module system tried to implement all the methods supported in Node. Now we just support the minimum required API (module.exports, exports, require, require.resolve, __filename and __dirname), which makes the codebase simpler, more maintainable are consistent with webpack
Restricted sandbox when evaluating code - We prevent access to node's native modules when evaluating because you wouldn't be able to do it with webpack, people should use something like babel-plugin-preval to do those
React bindings with styled helper ala styled-components which uses CSS custom properties for dynamic properties
This will be a breaking change and will require using both the Babel plugin and Webpack loader. It'll also address many outstanding issues: #169, #198, #204, #206, #208, #209
TODO
Handle dynamic imports when evaluating (should replace them with noop using a Babel plugin)
Add back support for include in css tag (maybe not)
Verify that the css and styled tags are from linaria when processing them (@zamotany)
@chrisbateman for the next release, we'll only have a webpack loader. but eventually we'll write integrations for more bundlers. we're also working on a CLI (#227) for libraries.
The next rewrite is at: https://github.com/callstack/linaria/tree/next
Summary
Now the Babel plugin writes the CSS as a comment in the file and the webpack loader write the actual files, which avoids all these issues, makes tests significantly simpler.
module.exports
,exports
,require
,require.resolve
,__filename
and__dirname
), which makes the codebase simpler, more maintainable are consistent with webpackstyled
helper alastyled-components
which uses CSS custom properties for dynamic propertiesThis will be a breaking change and will require using both the Babel plugin and Webpack loader. It'll also address many outstanding issues: #169, #198, #204, #206, #208, #209
TODO
Add back support forinclude
incss
tag (maybe not)css
andstyled
tags are from linaria when processing them (@zamotany)stylelint
preprocessor back ( feat: add stylelint preprocessor #221)now.json
config for the website and fix deploy (@thymikee)collect()
fails on a particular CSS snippet from bootstrap 4 #217Update https://github.com/thymikee/linaria-jest (@thymikee)The text was updated successfully, but these errors were encountered: