12345678910111213141516171819202122232425262728 |
- /**
- * Metro configuration for React Native
- * https://github.com/facebook/react-native
- *
- * @format
- */
- const { getDefaultConfig } = require("metro-config");
- module.exports = (async () => {
- const {
- resolver: { sourceExts }
- } = await getDefaultConfig();
- return {
- transformer: {
- babelTransformerPath: require.resolve("./vueTransformerPlugin.js"),
- getTransformOptions: async () => ({
- transform: {
- experimentalImportSupport: false,
- inlineRequires: false,
- },
- })
- },
- resolver: {
- sourceExts: [...sourceExts, "vue"]
- }
- };
- })();
|