Compare commits
3 Commits
5e8ee4dab8
...
3f1d337289
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 3f1d337289 | |
Derrick Hammer | 921918f1fb | |
Derrick Hammer | 546041ad8a |
|
@ -1,2 +1 @@
|
||||||
declare const preset: import("rollup").RollupOptions;
|
export declare const preset: import("rollup").RollupOptions;
|
||||||
export default preset;
|
|
||||||
|
|
|
@ -2,7 +2,14 @@ import { defineConfig } from "rollup";
|
||||||
import commonjs from "@rollup/plugin-commonjs";
|
import commonjs from "@rollup/plugin-commonjs";
|
||||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||||
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
|
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
|
||||||
const preset = defineConfig({
|
import typescript from "@rollup/plugin-typescript";
|
||||||
plugins: [nodeResolve(), commonjs(), bundleNativeModulesPlugin()],
|
import json from "@rollup/plugin-json";
|
||||||
|
export const preset = defineConfig({
|
||||||
|
plugins: [
|
||||||
|
typescript(),
|
||||||
|
json(),
|
||||||
|
nodeResolve(),
|
||||||
|
commonjs(),
|
||||||
|
bundleNativeModulesPlugin(),
|
||||||
|
],
|
||||||
});
|
});
|
||||||
export default preset;
|
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/rollup-plugin-bundle-native-modules": "https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git",
|
"@lumeweb/rollup-plugin-bundle-native-modules": "https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git",
|
||||||
"@rollup/plugin-commonjs": "^23.0.4",
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
|
"@rollup/plugin-json": "^5.0.2",
|
||||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
"@rollup/plugin-typescript": "^10.0.1",
|
||||||
"rollup": "^3.7.4"
|
"rollup": "^3.7.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
14
src/index.ts
14
src/index.ts
|
@ -2,9 +2,15 @@ import { defineConfig } from "rollup";
|
||||||
import commonjs from "@rollup/plugin-commonjs";
|
import commonjs from "@rollup/plugin-commonjs";
|
||||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||||
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
|
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
|
import json from "@rollup/plugin-json";
|
||||||
|
|
||||||
const preset = defineConfig({
|
export const preset = defineConfig({
|
||||||
plugins: [nodeResolve(), commonjs(), bundleNativeModulesPlugin()],
|
plugins: [
|
||||||
|
typescript(),
|
||||||
|
json(),
|
||||||
|
nodeResolve(),
|
||||||
|
commonjs(),
|
||||||
|
bundleNativeModulesPlugin(),
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
export default preset;
|
|
||||||
|
|
59
yarn.lock
59
yarn.lock
|
@ -19,6 +19,20 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@lumeweb/relay-plugin-rollup-preset@workspace:.":
|
||||||
|
version: 0.0.0-use.local
|
||||||
|
resolution: "@lumeweb/relay-plugin-rollup-preset@workspace:."
|
||||||
|
dependencies:
|
||||||
|
"@lumeweb/rollup-plugin-bundle-native-modules": "https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git"
|
||||||
|
"@rollup/plugin-commonjs": ^23.0.4
|
||||||
|
"@rollup/plugin-json": ^5.0.2
|
||||||
|
"@rollup/plugin-node-resolve": ^15.0.1
|
||||||
|
"@rollup/plugin-typescript": ^10.0.1
|
||||||
|
prettier: ^2.8.1
|
||||||
|
rollup: ^3.7.4
|
||||||
|
languageName: unknown
|
||||||
|
linkType: soft
|
||||||
|
|
||||||
"@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git":
|
"@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git":
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
resolution: "@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git#commit=194368400631fcf482cd70169480ba1bcc0c6e95"
|
resolution: "@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git#commit=194368400631fcf482cd70169480ba1bcc0c6e95"
|
||||||
|
@ -69,6 +83,20 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@rollup/plugin-json@npm:^5.0.2":
|
||||||
|
version: 5.0.2
|
||||||
|
resolution: "@rollup/plugin-json@npm:5.0.2"
|
||||||
|
dependencies:
|
||||||
|
"@rollup/pluginutils": ^5.0.1
|
||||||
|
peerDependencies:
|
||||||
|
rollup: ^1.20.0||^2.0.0||^3.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
rollup:
|
||||||
|
optional: true
|
||||||
|
checksum: 9b5f90ea311dfcfacf0f38af39bbb1954ea56d6faecdee3d528f73d0e02da96a0706ab21fae0c8eef9bb5d756f6f50b40b5a252ffd9800397012b5bac6764b6f
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@rollup/plugin-node-resolve@npm:^15.0.1":
|
"@rollup/plugin-node-resolve@npm:^15.0.1":
|
||||||
version: 15.0.1
|
version: 15.0.1
|
||||||
resolution: "@rollup/plugin-node-resolve@npm:15.0.1"
|
resolution: "@rollup/plugin-node-resolve@npm:15.0.1"
|
||||||
|
@ -88,6 +116,25 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@rollup/plugin-typescript@npm:^10.0.1":
|
||||||
|
version: 10.0.1
|
||||||
|
resolution: "@rollup/plugin-typescript@npm:10.0.1"
|
||||||
|
dependencies:
|
||||||
|
"@rollup/pluginutils": ^5.0.1
|
||||||
|
resolve: ^1.22.1
|
||||||
|
peerDependencies:
|
||||||
|
rollup: ^2.14.0||^3.0.0
|
||||||
|
tslib: "*"
|
||||||
|
typescript: ">=3.7.0"
|
||||||
|
peerDependenciesMeta:
|
||||||
|
rollup:
|
||||||
|
optional: true
|
||||||
|
tslib:
|
||||||
|
optional: true
|
||||||
|
checksum: d3e85674b5ff56c4376bbd79fd2baced3e988b7110d60b1f818eb344721f5605eaa3b56a1668631d210399db7188a7cc4790bb423ad9e56144d015fd1591ccc3
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@rollup/pluginutils@npm:^5.0.1":
|
"@rollup/pluginutils@npm:^5.0.1":
|
||||||
version: 5.0.2
|
version: 5.0.2
|
||||||
resolution: "@rollup/pluginutils@npm:5.0.2"
|
resolution: "@rollup/pluginutils@npm:5.0.2"
|
||||||
|
@ -931,18 +978,6 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"relay-plugin-rollup-preset@workspace:.":
|
|
||||||
version: 0.0.0-use.local
|
|
||||||
resolution: "relay-plugin-rollup-preset@workspace:."
|
|
||||||
dependencies:
|
|
||||||
"@lumeweb/rollup-plugin-bundle-native-modules": "https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git"
|
|
||||||
"@rollup/plugin-commonjs": ^23.0.4
|
|
||||||
"@rollup/plugin-node-resolve": ^15.0.1
|
|
||||||
prettier: ^2.8.1
|
|
||||||
rollup: ^3.7.4
|
|
||||||
languageName: unknown
|
|
||||||
linkType: soft
|
|
||||||
|
|
||||||
"resolve@npm:^1.22.1":
|
"resolve@npm:^1.22.1":
|
||||||
version: 1.22.1
|
version: 1.22.1
|
||||||
resolution: "resolve@npm:1.22.1"
|
resolution: "resolve@npm:1.22.1"
|
||||||
|
|
Loading…
Reference in New Issue