@ripple-ts/rollup-plugin 0.3.11 → 0.3.12

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 +11 -0
  2. package/index.js +4 -4
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @ripple-ts/rollup-plugin
2
2
 
3
+ ## 0.3.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#859](https://github.com/Ripple-TS/ripple/pull/859)
8
+ [`cdd31ba`](https://github.com/Ripple-TS/ripple/commit/cdd31ba4c07ce504b01d56533e19a6ba37879f5a)
9
+ Thanks [@trueadm](https://github.com/trueadm)! - Add first-phase `.tsrx` support
10
+ across the core Ripple tooling so Vite, Rollup, TypeScript, the language server,
11
+ Prettier, ESLint, and editor integrations accept both `.ripple` and `.tsrx`
12
+ files.
13
+
3
14
  ## 0.3.11
4
15
 
5
16
  ## 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', '.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.12",
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.12"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"