@naiv/react-bundler 0.0.1 → 0.0.2

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- interface FileSource {
1
+ export interface FileSource {
2
2
  path: string;
3
3
  content: string;
4
4
  }
@@ -12,5 +12,4 @@ export declare function generateCSS(source: string, other_sources: FileSource[])
12
12
  */
13
13
  export declare function bundleJS(source: string, other_sources: FileSource[]): Promise<string>;
14
14
  export declare function bundleHTML(source: string, other_sources: FileSource[]): Promise<string>;
15
- export {};
16
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAKA,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA+B9F;AAgDD;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAoB3F;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB7F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA+B9F;AAgDD;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAoB3F;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB7F"}
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ function virtualFsPlugin(other_sources) {
51
51
  // Resolve IDs for virtual files
52
52
  build.onResolve({ filter: /^\.\.?\// }, args => {
53
53
  // Normalize the path relative to the current directory
54
- // In this simple example, we assume everything is relative to CWD
54
+ // In this simple example, we assume everything is relative to cwd
55
55
  let relativePath = node_path_1.default.join(args.resolveDir, args.path.replace(/^\.\//, ''));
56
56
  relativePath = node_path_1.default.relative(process.cwd(), relativePath);
57
57
  // Try to match with extensions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naiv/react-bundler",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Bundle react files into single html output",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {