🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

babel-plugin-dynamic-import

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-dynamic-import

Babel plugin to replace files with dynamic content on build.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

babel-plugin-as-html

A plugin for Babel 6 that removes whitespace and minifies html written using as-html with es2015 template strings.

Installation

$ npm install babel-plugin-as-html --save-dev
$ babel --plugins as-html script.js

Example

All template strings tagged with the html tag will be minified and all unneeded white-space will be removed.

For instance the following tagged template:

import html from 'as-html'
let output = html`
	<div>
		<section class="super-cool">Hello World!</section>
	</div>
`;

becomes:

import html from 'as-html'
let output = html(['<div><section class="super-cool">Hello World!<\/section><\/div>'])

Contributions

  • Use npm test to run tests.

License

MIT

Keywords

babel

FAQs

Package last updated on 02 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts