@ripple-ts/rollup-plugin 0.3.46 → 0.3.47

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 +15 -0
  2. package/index.js +5 -5
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ripple-ts/rollup-plugin
2
2
 
3
+ ## 0.3.47
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1063](https://github.com/Ripple-TS/ripple/pull/1063)
8
+ [`a960343`](https://github.com/Ripple-TS/ripple/commit/a960343169aee906162211c502b6cc6b74e2a124)
9
+ Thanks [@leonidaz](https://github.com/leonidaz)! - Standardizes compile api
10
+ across all packages, including forcing types to adhere to the standard. Adds
11
+ more debug compile options to the playgrounds.
12
+ - Updated dependencies
13
+ [[`eae7b40`](https://github.com/Ripple-TS/ripple/commit/eae7b4047f4d8cc7a0278fb48ffe630d73a592c6),
14
+ [`b34b95a`](https://github.com/Ripple-TS/ripple/commit/b34b95a808ec801109d1818f4d24ae0bbc00f66b),
15
+ [`a960343`](https://github.com/Ripple-TS/ripple/commit/a960343169aee906162211c502b6cc6b74e2a124)]:
16
+ - @tsrx/ripple@0.0.29
17
+
3
18
  ## 0.3.46
4
19
 
5
20
  ### Patch Changes
package/index.js CHANGED
@@ -53,14 +53,14 @@ export default function (options = {}) {
53
53
 
54
54
  const filename = path.relative(process.cwd(), id);
55
55
 
56
- const { js, css } = await compile(code, filename, id);
56
+ const result = await compile(code, filename, id);
57
57
 
58
- if (emitCss && css && css.code) {
58
+ if (emitCss && result.css) {
59
59
  const fname = id.replace(new RegExp(`\\${extension}$`), '.css');
60
- js.code += `\nimport ${JSON.stringify(fname)};\n`;
61
- cache_emit.set(fname, css);
60
+ result.code += `\nimport ${JSON.stringify(fname)};\n`;
61
+ cache_emit.set(fname, result.css);
62
62
  }
63
- return js;
63
+ return { code: result.code, map: result.map };
64
64
  },
65
65
  };
66
66
  }
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.46",
6
+ "version": "0.3.47",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "homepage": "https://ripple-ts.com",
@@ -17,13 +17,13 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@rollup/pluginutils": "^5.3.0",
20
- "@tsrx/ripple": "0.0.28"
20
+ "@tsrx/ripple": "0.0.29"
21
21
  },
22
22
  "devDependencies": {
23
23
  "rollup": "^4.59.0",
24
24
  "source-map": "^0.7.6",
25
25
  "uvu": "^0.5.6",
26
- "ripple": "0.3.46"
26
+ "ripple": "0.3.47"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"