@elenajs/bundler 0.1.0 → 0.3.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.1.0",
3
+ "version": "0.3.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.2.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": "056c6a4cf9c5c95b2fc99d99fb4c5d5fb49d9af2"
47
+ "gitHead": "323fcac2e1d15f81e7b4a039357c1f2e3e8f3030"
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) {
@@ -118,8 +114,8 @@ export function createRollupConfig(options = {}) {
118
114
  /**
119
115
  * Runs both Rollup build targets programmatically using the Rollup Node.js API.
120
116
  *
121
- * Note: the `output` key inside `RollupOptions` is ignored by the `rollup()` API
122
- * output options must be passed separately to `build.write()`.
117
+ * Note: the `output` key inside `RollupOptions` is ignored by the `rollup()` API.
118
+ * Output options must be passed separately to `build.write()`.
123
119
  *
124
120
  * @param {import("./utils/load-config.js").ElenaConfig} config
125
121
  * @returns {Promise<void>}