@elenajs/bundler 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elenajs/bundler",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Bundler for progressive web component libraries built with Elena.",
5
5
  "author": "Elena <hi@elenajs.com>",
6
6
  "homepage": "https://elenajs.com/",
@@ -32,18 +32,17 @@
32
32
  "@elenajs/plugin-cem-define": "^0.0.3",
33
33
  "@elenajs/plugin-cem-tag": "^0.0.3",
34
34
  "@elenajs/plugin-cem-typescript": "^0.1.0",
35
- "@elenajs/plugin-rollup-css-bundle": "^0.0.3",
35
+ "@elenajs/plugin-rollup-css": "^0.3.0",
36
36
  "@rollup/plugin-node-resolve": "16.0.3",
37
37
  "@rollup/plugin-terser": "0.4.4",
38
38
  "custom-element-jsx-integration": "1.6.0",
39
39
  "globby": "11.0.4",
40
40
  "rollup": "4.57.1",
41
- "rollup-plugin-copy": "3.5.0",
42
41
  "rollup-plugin-minify-html-literals-v3": "^1.3.4",
43
42
  "rollup-plugin-summary": "3.0.1"
44
43
  },
45
44
  "devDependencies": {
46
45
  "vitest": "4.0.18"
47
46
  },
48
- "gitHead": "91eb41114d32cfa09d11747f45db3805114b6706"
47
+ "gitHead": "e2caa93517537a057b0e362d8bc2e4315b0fb883"
49
48
  }
@@ -2,10 +2,9 @@ import { readdirSync } from "fs";
2
2
  import { rollup } from "rollup";
3
3
  import resolve from "@rollup/plugin-node-resolve";
4
4
  import terser from "@rollup/plugin-terser";
5
- import copy from "rollup-plugin-copy";
6
5
  import minifyHtmlLiterals from "rollup-plugin-minify-html-literals-v3";
7
6
  import summary from "rollup-plugin-summary";
8
- import { cssBundlePlugin } from "@elenajs/plugin-rollup-css-bundle";
7
+ import { cssPlugin, cssBundlePlugin } from "@elenajs/plugin-rollup-css";
9
8
  import { color } from "./utils/color.js";
10
9
 
11
10
  const TREESHAKE = {
@@ -39,10 +38,7 @@ function buildPlugins({ src, outdir, hasSummary, includeCssBundle, extraPlugins
39
38
  ecma: 2020,
40
39
  module: true,
41
40
  }),
42
- copy({
43
- targets: [{ src: `${src}/**/*.css`, dest: outdir }],
44
- flatten: true,
45
- }),
41
+ cssPlugin(src),
46
42
  ];
47
43
 
48
44
  if (includeCssBundle) {