@ripple-ts/rollup-plugin 0.3.11 → 0.3.13

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/index.js +4 -4
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @ripple-ts/rollup-plugin
2
2
 
3
+ ## 0.3.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6e11177`](https://github.com/Ripple-TS/ripple/commit/6e111778cae4e7d9876e51e293520f0859eb5890)
8
+ Thanks [@trueadm](https://github.com/trueadm)! - Add `.rsrx` support across
9
+ Ripple tooling and rename the repository's tracked `.ripple` modules to `.rsrx`.
10
+
11
+ ## 0.3.12
12
+
13
+ ### Patch Changes
14
+
15
+ - [#859](https://github.com/Ripple-TS/ripple/pull/859)
16
+ [`cdd31ba`](https://github.com/Ripple-TS/ripple/commit/cdd31ba4c07ce504b01d56533e19a6ba37879f5a)
17
+ Thanks [@trueadm](https://github.com/trueadm)! - Add first-phase `.tsrx` support
18
+ across the core Ripple tooling so Vite, Rollup, TypeScript, the language server,
19
+ Prettier, ESLint, and editor integrations accept both `.ripple` and `.tsrx`
20
+ files.
21
+
3
22
  ## 0.3.11
4
23
 
5
24
  ## 0.3.10
package/index.js CHANGED
@@ -10,7 +10,7 @@ const PREFIX = '[@ripple-ts/rollup-plugin]';
10
10
  */
11
11
  export default function (options = {}) {
12
12
  const { compilerOptions = {}, ...rest } = options;
13
- const extensions = ['.ripple'];
13
+ const extensions = ['.ripple', '.rsrx', '.tsrx'];
14
14
  const filter = createFilter(rest.include, rest.exclude);
15
15
 
16
16
  // [filename]:[chunk]
@@ -42,14 +42,14 @@ export default function (options = {}) {
42
42
  },
43
43
 
44
44
  /**
45
- * Transforms a `.ripple` file into a `.js` file.
45
+ * Transforms a Ripple source file into a `.js` file.
46
46
  * NOTE: If `emitCss`, append static `import` to virtual CSS file.
47
47
  */
48
48
  async transform(code, id) {
49
- if (!filter(id) || !id.endsWith('.ripple')) return null;
49
+ if (!filter(id)) return null;
50
50
 
51
51
  const extension = path.extname(id);
52
- if (!~extensions.indexOf(extension)) return null;
52
+ if (!extensions.includes(extension)) return null;
53
53
 
54
54
  const filename = path.relative(process.cwd(), id);
55
55
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Rollup plugin for Ripple",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.3.11",
6
+ "version": "0.3.13",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "homepage": "https://ripple-ts.com",
@@ -22,7 +22,7 @@
22
22
  "rollup": "^4.59.0",
23
23
  "source-map": "^0.7.6",
24
24
  "uvu": "^0.5.6",
25
- "ripple": "0.3.11"
25
+ "ripple": "0.3.13"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"