Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-sass

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-sass - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

0

CHANGELOG.md

@@ -0,0 +0,0 @@ ## [1.2.6](https://github.com/differui/rollup-plugin-sass/releases/tag/1.2.6)

@@ -0,0 +0,0 @@ import { RollupPluginSassOptions } from "./types";

@@ -0,0 +0,0 @@ "use strict";

export declare function insertStyle(css: any): any;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { types } from 'sass';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map
export declare const log: any, warn: any, error: any, isset: (x: any) => boolean, isString: (x: any) => boolean, isObject: (x: any) => boolean, isFunction: (x: any) => boolean;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ The MIT License (MIT)

12

package.json
{
"name": "rollup-plugin-sass",
"version": "1.2.7",
"version": "1.2.8",
"description": "Rollup Sass files.",

@@ -8,6 +8,7 @@ "main": "dist/index.js",

"scripts": {
"prepublishOnly": "npm i && npm run build && npm run test",
"prepare": "npm run build && npm test",
"build": "tsc --project tsconfig.json",
"test": "nyc --reporter=html --reporter=text ava ./test/*.test.ts -s",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"test": "nyc --reporter=html --reporter=text ava ./test/*.test.ts -s && npm run test:rollup.config.spec.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit"
},

@@ -30,2 +31,5 @@ "standard": {

"author": "BinRui.Guan <differui@gmail.com>",
"contributors": [
"elycruz <elycruz@elycruz.com> (https://github.com/elycruz)"
],
"license": "MIT",

@@ -32,0 +36,0 @@ "bugs": {

@@ -28,2 +28,30 @@ rollup-plugin-sass [![CircleCI](https://img.shields.io/circleci/project/github/differui/rollup-plugin-sass/master.svg?style=flat-square)](https://circleci.com/gh/differui/rollup-plugin-sass) [![issues](https://img.shields.io/github/issues/differui/rollup-plugin-sass.svg?style=flat-square)](https://www.npmjs.com/package/rollup-plugin-sass) [![npm](https://img.shields.io/npm/v/rollup-plugin-sass.svg?style=flat-square)](https://www.npmjs.com/package/rollup-plugin-sass) [![mit](https://img.shields.io/npm/l/rollup-plugin-sass.svg?style=flat-square)](https://opensource.org/licenses/MIT) [![Coverage Status](https://coveralls.io/repos/github/differui/rollup-plugin-sass/badge.svg?branch=master)](https://coveralls.io/github/differui/rollup-plugin-sass?branch=master)

#### rollup.config.ts
Add `allowSyntheticDefaultImports`, or `esModuleInterop` (enables `allowSyntheticDefaultImports`), to tsconfig.json:
```json
{
//...
"compilerOptions": {
"esModuleInterOp": true,
// ...
},
}
```
Reference: (https://www.typescriptlang.org/tsconfig#esModuleInterop)
Write rollup.config.ts:
```typescript
// rollup.config.ts
import sass from 'rollup-plugin-sass';
// ...
```
Profit.
## Options

@@ -30,0 +58,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc