improve raw loading

pull/5370/head
Aniket-Engg 3 years ago committed by yann300
parent 6c7d4bedc1
commit 74cc70d90a
  1. 8
      libs/remix-ws-templates/src/templates/ozerc20/index.ts
  2. 10
      libs/remix-ws-templates/src/templates/remixDefault/index.ts

@ -3,13 +3,13 @@ export default async () => {
// @ts-ignore // @ts-ignore
'contracts/SampleERC20.sol': (await import('raw-loader!./contracts/SampleERC20.sol')).default, 'contracts/SampleERC20.sol': (await import('raw-loader!./contracts/SampleERC20.sol')).default,
// @ts-ignore // @ts-ignore
'scripts/deploy_with_ethers.ts': (await import('!!raw-loader!./scripts/deploy_with_ethers.ts')).default, 'scripts/deploy_with_ethers.ts': (await import('raw-loader!./scripts/deploy_with_ethers.ts')).default,
// @ts-ignore // @ts-ignore
'scripts/deploy_with_web3.ts': (await import('!!raw-loader!./scripts/deploy_with_web3.ts')).default, 'scripts/deploy_with_web3.ts': (await import('raw-loader!./scripts/deploy_with_web3.ts')).default,
// @ts-ignore // @ts-ignore
'scripts/ethers.ts': (await import('!!raw-loader!./scripts/ethers.ts')).default, 'scripts/ethers.ts': (await import('raw-loader!./scripts/ethers.ts')).default,
// @ts-ignore // @ts-ignore
'scripts/web3.ts': (await import('!!raw-loader!./scripts/web3.ts')).default, 'scripts/web3.ts': (await import('raw-loader!./scripts/web3.ts')).default,
// @ts-ignore // @ts-ignore
'tests/SampleERC20_test.sol': (await import('raw-loader!./tests/SampleERC20_test.sol')).default 'tests/SampleERC20_test.sol': (await import('raw-loader!./tests/SampleERC20_test.sol')).default
} }

@ -7,17 +7,17 @@ export default async () => {
// @ts-ignore // @ts-ignore
'contracts/3_Ballot.sol': (await import('raw-loader!./contracts/3_Ballot.sol')).default, 'contracts/3_Ballot.sol': (await import('raw-loader!./contracts/3_Ballot.sol')).default,
// @ts-ignore // @ts-ignore
'scripts/deploy_with_ethers.ts': (await import('!!raw-loader!./scripts/deploy_with_ethers.ts')).default, 'scripts/deploy_with_ethers.ts': (await import('raw-loader!./scripts/deploy_with_ethers.ts')).default,
// @ts-ignore // @ts-ignore
'scripts/deploy_with_web3.ts': (await import('!!raw-loader!./scripts/deploy_with_web3.ts')).default, 'scripts/deploy_with_web3.ts': (await import('raw-loader!./scripts/deploy_with_web3.ts')).default,
// @ts-ignore // @ts-ignore
'scripts/ethers.ts': (await import('!!raw-loader!./scripts/ethers.ts')).default, 'scripts/ethers.ts': (await import('raw-loader!./scripts/ethers.ts')).default,
// @ts-ignore // @ts-ignore
'scripts/web3.ts': (await import('!!raw-loader!./scripts/web3.ts')).default, 'scripts/web3.ts': (await import('raw-loader!./scripts/web3.ts')).default,
// @ts-ignore // @ts-ignore
'tests/Ballot_test.sol': (await import('raw-loader!./tests/Ballot_test.sol')).default, 'tests/Ballot_test.sol': (await import('raw-loader!./tests/Ballot_test.sol')).default,
// @ts-ignore // @ts-ignore
'tests/storage.test.js': (await import('!!raw-loader!./tests/storage.test.js')).default, 'tests/storage.test.js': (await import('raw-loader!./tests/storage.test.js')).default,
// @ts-ignore // @ts-ignore
'README.txt': (await import('raw-loader!./README.txt')).default, 'README.txt': (await import('raw-loader!./README.txt')).default,
} }

Loading…
Cancel
Save