@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 +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAKA,
|
|
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
|
|
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
|