Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b6636c2

Browse files
committed
Stub-out config_validator
1 parent 63b54d3 commit b6636c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/optimizely-sdk/rollup.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import path from 'path';
1617
import { dependencies } from './package.json';
18+
import alias from '@rollup/plugin-alias';
1719
import commonjs from '@rollup/plugin-commonjs';
1820
import { terser } from 'rollup-plugin-terser';
1921
import resolve from '@rollup/plugin-node-resolve';
@@ -43,6 +45,10 @@ const getCjsConfigForPlatform = (platform) => {
4345
const esModuleConfig = {
4446
... getCjsConfigForPlatform('browser'),
4547
plugins: [
48+
alias({ entries: [
49+
{ find: /.*\/utils\/config_validator/,
50+
replacement: path.resolve(__dirname, 'ext/config_validator.js') },
51+
]}),
4652
resolve(),
4753
commonjs(),
4854
visualize(),

0 commit comments

Comments
 (0)