Skip to content

Commit 67208d3

Browse files
committed
uncomment build rules
1 parent 45869d0 commit 67208d3

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

packages-exp/auth-exp/rollup.config.shared.js

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -57,69 +57,69 @@ export function getConfig({ isReleaseBuild }) {
5757
output: [{ dir: 'dist/esm5', format: 'esm', sourcemap: true }],
5858
plugins: es5BuildPlugins,
5959
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
60-
}
60+
},
6161
/**
6262
* Web Worker Build (compiled without DOM)
6363
*/
64-
// {
65-
// input: 'index.webworker.ts',
66-
// output: [{ file: pkg.webworker, format: 'es', sourcemap: true }],
67-
// plugins: [
68-
// ...commonPlugins,
69-
// getTypesScriptPlugin({
70-
// isReleaseBuild,
71-
// compilerOptions: {
72-
// lib: [
73-
// // Remove dom after we figure out why navigator stuff doesn't exist
74-
// 'dom',
75-
// 'es2015',
76-
// 'webworker'
77-
// ]
78-
// }
79-
// })
80-
// ],
81-
// external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
82-
// },
83-
// /**
84-
// * Node.js Build
85-
// */
86-
// {
87-
// input: {
88-
// index: 'index.node.ts',
89-
// internal: 'internal/index.ts'
90-
// },
91-
// output: [{ dir: 'dist/node', format: 'cjs', sourcemap: true }],
92-
// plugins: es5BuildPlugins,
93-
// external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
94-
// },
95-
// /**
96-
// * Cordova Builds
97-
// */
98-
// {
99-
// input: {
100-
// index: 'index.cordova.ts',
101-
// internal: 'internal/index.ts'
102-
// },
103-
// output: [{ dir: 'dist/cordova', format: 'es', sourcemap: true }],
104-
// plugins: es5BuildPlugins,
105-
// external: id =>
106-
// [...deps, 'cordova'].some(dep => id === dep || id.startsWith(`${dep}/`))
107-
// },
108-
// /**
109-
// * React Native Builds
110-
// */
111-
// {
112-
// input: {
113-
// index: 'index.rn.ts',
114-
// internal: 'internal/index.ts'
115-
// },
116-
// output: [{ dir: 'dist/rn', format: 'cjs', sourcemap: true }],
117-
// plugins: es5BuildPlugins,
118-
// external: id =>
119-
// [...deps, 'react-native'].some(
120-
// dep => id === dep || id.startsWith(`${dep}/`)
121-
// )
122-
// }
64+
{
65+
input: 'index.webworker.ts',
66+
output: [{ file: pkg.webworker, format: 'es', sourcemap: true }],
67+
plugins: [
68+
...commonPlugins,
69+
getTypesScriptPlugin({
70+
isReleaseBuild,
71+
compilerOptions: {
72+
lib: [
73+
// Remove dom after we figure out why navigator stuff doesn't exist
74+
'dom',
75+
'es2015',
76+
'webworker'
77+
]
78+
}
79+
})
80+
],
81+
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
82+
},
83+
/**
84+
* Node.js Build
85+
*/
86+
{
87+
input: {
88+
index: 'index.node.ts',
89+
internal: 'internal/index.ts'
90+
},
91+
output: [{ dir: 'dist/node', format: 'cjs', sourcemap: true }],
92+
plugins: es5BuildPlugins,
93+
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
94+
},
95+
/**
96+
* Cordova Builds
97+
*/
98+
{
99+
input: {
100+
index: 'index.cordova.ts',
101+
internal: 'internal/index.ts'
102+
},
103+
output: [{ dir: 'dist/cordova', format: 'es', sourcemap: true }],
104+
plugins: es5BuildPlugins,
105+
external: id =>
106+
[...deps, 'cordova'].some(dep => id === dep || id.startsWith(`${dep}/`))
107+
},
108+
/**
109+
* React Native Builds
110+
*/
111+
{
112+
input: {
113+
index: 'index.rn.ts',
114+
internal: 'internal/index.ts'
115+
},
116+
output: [{ dir: 'dist/rn', format: 'cjs', sourcemap: true }],
117+
plugins: es5BuildPlugins,
118+
external: id =>
119+
[...deps, 'react-native'].some(
120+
dep => id === dep || id.startsWith(`${dep}/`)
121+
)
122+
}
123123
];
124124

125125
/**

0 commit comments

Comments
 (0)